mirror of https://github.com/ppy/osu
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 @@ public void TestLongGameTime()
|
|||
[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