1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 06:07:25 +08:00
osu-lazer/osu.Desktop.VisualTests/Tests/TestCaseDrawings.cs

50 lines
1.3 KiB
C#
Raw Normal View History

2017-03-03 15:33:40 +08:00
using osu.Framework.Allocation;
using osu.Framework.Platform;
using osu.Framework.Screens.Testing;
2017-02-27 13:19:07 +08:00
using osu.Game.Screens.Tournament;
using System;
using System.Collections.Generic;
2017-03-03 15:33:40 +08:00
using System.IO;
2017-02-27 13:19:07 +08:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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)
{
string[] testTeams =
{
"GB:United Kingdom:UK",
"FR:France:FRA",
"CN:China:CHN",
"AU:Australia:AUS",
"JP:Japan:JPN",
"RO:Romania",
"IT:Italy",
"VE:Venezuela:VNZ"
};
using (Stream stream = storage.GetStream(Drawings.TEAMS_FILENAME, FileAccess.Write, FileMode.Create))
using (StreamWriter sw = new StreamWriter(stream))
{
foreach (string line in testTeams)
sw.WriteLine(line);
}
}
2017-02-27 13:19:07 +08:00
public override void Reset()
{
base.Reset();
Add(new Drawings());
}
}
}