mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 06:52:59 +08: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]
|
[Test]
|
||||||
public void TestDisplayModeChange()
|
public void TestDisplayModeChange()
|
||||||
{
|
{
|
||||||
ToolbarClockDisplayMode initialDisplayMode = 0;
|
AddStep("Set clock display mode", () => clockDisplayMode.Value = ToolbarClockDisplayMode.Full);
|
||||||
|
|
||||||
AddStep("Retrieve current state", () => initialDisplayMode = clockDisplayMode.Value);
|
|
||||||
|
|
||||||
AddStep("Trigger click", () => toolbarClock.TriggerClick());
|
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());
|
AddStep("Trigger click", () => toolbarClock.TriggerClick());
|
||||||
AddAssert("State changed from initial", () => clockDisplayMode.Value != initialDisplayMode);
|
AddAssert("State changed from initial", () => clockDisplayMode.Value != initialDisplayMode);
|
||||||
AddStep("Trigger click", () => toolbarClock.TriggerClick());
|
AddStep("Trigger click", () => toolbarClock.TriggerClick());
|
||||||
|
Loading…
Reference in New Issue
Block a user