Move easily testable test scene to top of `TestSceneGameplayScreen`

This commit is contained in:
Dean Herbert 2023-07-24 18:20:50 +09:00
parent 69ba7afda5
commit 2658161605
1 changed files with 14 additions and 14 deletions

View File

@ -20,6 +20,20 @@ public partial class TestSceneGameplayScreen : TournamentTestScene
[Cached]
private TournamentMatchChatDisplay chat = new TournamentMatchChatDisplay { Width = 0.5f };
[Test]
public void TestWarmup()
{
createScreen();
checkScoreVisibility(false);
toggleWarmup();
checkScoreVisibility(true);
toggleWarmup();
checkScoreVisibility(false);
}
[Test]
public void TestStartupState([Values] TourneyState state)
{
@ -35,20 +49,6 @@ public void TestStartupStateNoCurrentMatch([Values] TourneyState state)
createScreen();
}
[Test]
public void TestWarmup()
{
createScreen();
checkScoreVisibility(false);
toggleWarmup();
checkScoreVisibility(true);
toggleWarmup();
checkScoreVisibility(false);
}
private void createScreen()
{
AddStep("setup screen", () =>