osu/osu.Game.Tournament.Tests/TestCaseDrawings.cs

84 lines
2.4 KiB
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
2018-04-13 09:19:50 +00:00
using System.Collections.Generic;
using osu.Game.Tests.Visual;
2018-08-25 16:24:19 +00:00
using osu.Game.Tournament.Components;
using osu.Game.Tournament.Screens.Drawings;
using osu.Game.Tournament.Screens.Drawings.Components;
2018-04-13 09:19:50 +00:00
namespace osu.Game.Tournament.Tests
2018-04-13 09:19:50 +00:00
{
2019-02-15 08:01:06 +00:00
public class TestCaseDrawings : ScreenTestCase
2018-04-13 09:19:50 +00:00
{
public TestCaseDrawings()
{
2019-02-17 10:48:58 +00:00
Add(new DrawingsScreen
2018-04-13 09:19:50 +00:00
{
TeamList = new TestTeamList(),
});
}
private class TestTeamList : ITeamList
{
public IEnumerable<TournamentTeam> Teams { get; } = new[]
2018-04-13 09:19:50 +00:00
{
new TournamentTeam
2018-04-13 09:19:50 +00:00
{
FlagName = "GB",
FullName = "United Kingdom",
Acronym = "UK"
},
new TournamentTeam
2018-04-13 09:19:50 +00:00
{
FlagName = "FR",
FullName = "France",
Acronym = "FRA"
},
new TournamentTeam
2018-04-13 09:19:50 +00:00
{
FlagName = "CN",
FullName = "China",
Acronym = "CHN"
},
new TournamentTeam
2018-04-13 09:19:50 +00:00
{
FlagName = "AU",
FullName = "Australia",
Acronym = "AUS"
},
new TournamentTeam
2018-04-13 09:19:50 +00:00
{
FlagName = "JP",
FullName = "Japan",
Acronym = "JPN"
},
new TournamentTeam
2018-04-13 09:19:50 +00:00
{
FlagName = "RO",
FullName = "Romania",
Acronym = "ROM"
},
new TournamentTeam
2018-04-13 09:19:50 +00:00
{
FlagName = "IT",
FullName = "Italy",
Acronym = "PIZZA"
},
new TournamentTeam
2018-04-13 09:19:50 +00:00
{
FlagName = "VE",
FullName = "Venezuela",
Acronym = "VNZ"
},
new TournamentTeam
2018-04-13 09:19:50 +00:00
{
FlagName = "US",
FullName = "United States of America",
Acronym = "USA"
},
};
}
}
}