Skip to content

Commit

Permalink
Move easily testable test scene to top of TestSceneGameplayScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jul 24, 2023
1 parent 69ba7af commit 2658161
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions osu.Game.Tournament.Tests/Screens/TestSceneGameplayScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,32 @@ public partial class TestSceneGameplayScreen : TournamentTestScene
private TournamentMatchChatDisplay chat = new TournamentMatchChatDisplay { Width = 0.5f };

[Test]
public void TestStartupState([Values] TourneyState state)
public void TestWarmup()
{
AddStep("set state", () => IPCInfo.State.Value = state);
createScreen();

checkScoreVisibility(false);

toggleWarmup();
checkScoreVisibility(true);

toggleWarmup();
checkScoreVisibility(false);
}

[Test]
public void TestStartupStateNoCurrentMatch([Values] TourneyState state)
public void TestStartupState([Values] TourneyState state)
{
AddStep("set null current", () => Ladder.CurrentMatch.Value = null);
AddStep("set state", () => IPCInfo.State.Value = state);
createScreen();
}

[Test]
public void TestWarmup()
public void TestStartupStateNoCurrentMatch([Values] TourneyState state)
{
AddStep("set null current", () => Ladder.CurrentMatch.Value = null);
AddStep("set state", () => IPCInfo.State.Value = state);
createScreen();

checkScoreVisibility(false);

toggleWarmup();
checkScoreVisibility(true);

toggleWarmup();
checkScoreVisibility(false);
}

private void createScreen()
Expand Down

0 comments on commit 2658161

Please sign in to comment.