Add test coverage of double dispose of OsuGame

This commit is contained in:
Dean Herbert 2021-09-13 18:32:58 +09:00
parent aa71e3f3d4
commit 24ae530a80

View File

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