mirror of
https://github.com/ppy/osu
synced 2024-12-09 16:39:15 +00:00
Change behavior of the display mode test
I remembered to run InspectCode this time, all good
This commit is contained in:
parent
ee9696855b
commit
a1baced777
@ -92,12 +92,10 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
[Test]
|
||||
public void TestDisplayModeChange()
|
||||
{
|
||||
ToolbarClockDisplayMode initialDisplayMode = 0;
|
||||
|
||||
AddStep("Retrieve current state", () => initialDisplayMode = clockDisplayMode.Value);
|
||||
AddStep("Set clock display mode", () => clockDisplayMode.Value = ToolbarClockDisplayMode.Full);
|
||||
|
||||
AddStep("Trigger click", () => toolbarClock.TriggerClick());
|
||||
AddAssert("State changed from initial", () => clockDisplayMode.Value != initialDisplayMode);
|
||||
AddAssert("State is digital with runtime", () => clockDisplayMode.Value == ToolbarClockDisplayMode.DigitalWithRuntime);
|
||||
AddStep("Trigger click", () => toolbarClock.TriggerClick());
|
||||
AddAssert("State changed from initial", () => clockDisplayMode.Value != initialDisplayMode);
|
||||
AddStep("Trigger click", () => toolbarClock.TriggerClick());
|
||||
|
Loading…
Reference in New Issue
Block a user