Change behavior of the display mode test

I remembered to run InspectCode this time, all good
This commit is contained in:
CenTdemeern1 2022-04-02 04:45:21 +02:00
parent ee9696855b
commit a1baced777
1 changed files with 2 additions and 4 deletions

View File

@ -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());