Expand tests to cover new behaviour

This commit is contained in:
Dean Herbert 2019-09-19 22:35:14 +09:00
parent 50d4206c45
commit 23c5cb6367
1 changed files with 7 additions and 0 deletions

View File

@ -52,11 +52,18 @@ public TestSceneHoldToConfirmOverlay()
AddStep("start confirming", () => overlay.Begin());
AddStep("abort confirming", () => overlay.Abort());
AddAssert("ensure not fired internally", () => !overlay.Fired);
AddAssert("ensure aborted", () => !fired);
AddStep("start confirming", () => overlay.Begin());
AddUntilStep("wait until confirmed", () => fired);
AddAssert("ensure fired internally", () => overlay.Fired);
AddStep("abort after fire", () => overlay.Abort());
AddAssert("ensure not fired internally", () => !overlay.Fired);
AddStep("start confirming", () => overlay.Begin());
AddUntilStep("wait until fired again", () => overlay.Fired);
}
private class TestHoldToConfirmOverlay : ExitConfirmOverlay