mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Add test coverage of double dispose of OsuGame
This commit is contained in:
parent
aa71e3f3d4
commit
24ae530a80
@ -400,6 +400,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
AddStep("Hold escape", () => InputManager.PressKey(Key.Escape));
|
||||
AddUntilStep("Wait for intro", () => Game.ScreenStack.CurrentScreen is IntroTriangles);
|
||||
AddUntilStep("Wait for game exit", () => Game.ScreenStack.CurrentScreen == null);
|
||||
AddStep("test dispose doesn't crash", () => Game.Dispose());
|
||||
}
|
||||
|
||||
private void pushEscape() =>
|
||||
|
Loading…
Reference in New Issue
Block a user