1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Update test to cover changed exit/pause logic

I think this makes more sense?
This commit is contained in:
Dean Herbert 2021-02-09 17:29:27 +09:00
parent 2c052d70e8
commit 94f35825dd

View File

@ -108,19 +108,19 @@ namespace osu.Game.Tests.Visual.Gameplay
} }
[Test] [Test]
public void TestExitTooSoon() public void TestExitSoonAfterResumeSucceeds()
{ {
AddStep("seek before gameplay", () => Player.GameplayClockContainer.Seek(-5000)); AddStep("seek before gameplay", () => Player.GameplayClockContainer.Seek(-5000));
pauseAndConfirm(); pauseAndConfirm();
resume(); resume();
AddStep("exit too soon", () => Player.Exit()); AddStep("exit quick", () => Player.Exit());
confirmClockRunning(true); confirmClockRunning(true);
confirmPauseOverlayShown(false); confirmPauseOverlayShown(false);
AddAssert("not exited", () => Player.IsCurrentScreen()); AddAssert("exited", () => !Player.IsCurrentScreen());
} }
[Test] [Test]