mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:28:00 +08:00
Move easily testable test scene to top of TestSceneGameplayScreen
This commit is contained in:
parent
69ba7afda5
commit
2658161605
@ -20,6 +20,20 @@ namespace osu.Game.Tournament.Tests.Screens
|
|||||||
[Cached]
|
[Cached]
|
||||||
private TournamentMatchChatDisplay chat = new TournamentMatchChatDisplay { Width = 0.5f };
|
private TournamentMatchChatDisplay chat = new TournamentMatchChatDisplay { Width = 0.5f };
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestWarmup()
|
||||||
|
{
|
||||||
|
createScreen();
|
||||||
|
|
||||||
|
checkScoreVisibility(false);
|
||||||
|
|
||||||
|
toggleWarmup();
|
||||||
|
checkScoreVisibility(true);
|
||||||
|
|
||||||
|
toggleWarmup();
|
||||||
|
checkScoreVisibility(false);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestStartupState([Values] TourneyState state)
|
public void TestStartupState([Values] TourneyState state)
|
||||||
{
|
{
|
||||||
@ -35,20 +49,6 @@ namespace osu.Game.Tournament.Tests.Screens
|
|||||||
createScreen();
|
createScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestWarmup()
|
|
||||||
{
|
|
||||||
createScreen();
|
|
||||||
|
|
||||||
checkScoreVisibility(false);
|
|
||||||
|
|
||||||
toggleWarmup();
|
|
||||||
checkScoreVisibility(true);
|
|
||||||
|
|
||||||
toggleWarmup();
|
|
||||||
checkScoreVisibility(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void createScreen()
|
private void createScreen()
|
||||||
{
|
{
|
||||||
AddStep("setup screen", () =>
|
AddStep("setup screen", () =>
|
||||||
|
Loading…
Reference in New Issue
Block a user