1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 11:37:52 +08:00
osu-lazer/osu.Desktop.VisualTests/Tests/TestCaseDrawings.cs

95 lines
2.7 KiB
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System.Collections.Generic;
using osu.Framework.Allocation;
2017-03-03 15:33:40 +08:00
using osu.Framework.Platform;
using osu.Framework.Screens.Testing;
2017-02-27 13:19:07 +08:00
using osu.Game.Screens.Tournament;
2017-03-03 19:42:22 +08:00
using osu.Game.Screens.Tournament.Teams;
2017-02-27 13:19:07 +08:00
namespace osu.Desktop.VisualTests.Tests
{
class TestCaseDrawings : TestCase
{
public override string Name => @"Drawings";
public override string Description => "Tournament drawings";
2017-03-03 15:33:40 +08:00
[BackgroundDependencyLoader]
private void load(Storage storage)
{
}
2017-02-27 13:19:07 +08:00
public override void Reset()
{
base.Reset();
Add(new Drawings
{
TeamList = new TestTeamList(),
});
2017-03-03 17:47:56 +08:00
}
class TestTeamList : ITeamList
{
public IEnumerable<Team> Teams { get; } = new[]
2017-03-03 17:47:56 +08:00
{
new Team
{
FlagName = "GB",
FullName = "United Kingdom",
Acronym = "UK"
},
new Team
{
FlagName = "FR",
FullName = "France",
Acronym = "FRA"
},
new Team
{
FlagName = "CN",
FullName = "China",
Acronym = "CHN"
},
new Team
{
FlagName = "AU",
FullName = "Australia",
Acronym = "AUS"
},
new Team
{
FlagName = "JP",
FullName = "Japan",
Acronym = "JPN"
},
new Team
{
FlagName = "RO",
FullName = "Romania",
Acronym = "ROM"
},
new Team
{
FlagName = "IT",
FullName = "Italy",
Acronym = "PIZZA"
},
new Team
{
FlagName = "VE",
FullName = "Venezuela",
Acronym = "VNZ"
},
new Team
2017-03-03 17:47:56 +08:00
{
FlagName = "US",
FullName = "United States of America",
Acronym = "USA"
},
};
2017-02-27 13:19:07 +08:00
}
}
}