Disallow exiting the editor without saving (unless explicitly confirming)

This commit is contained in:
Dean Herbert
2022-03-22 15:28:31 +09:00
parent f95bd89166
commit 61ddf1e6cf
3 changed files with 30 additions and 8 deletions

View File

@ -17,6 +17,13 @@ namespace osu.Game.Tests.Visual.Editing
{
public class TestSceneEditorSaving : EditorSavingTestScene
{
[Test]
public void TestCantExitWithoutSaving()
{
AddRepeatStep("Exit", () => InputManager.Key(Key.Escape), 10);
AddAssert("Editor is still active screen", () => Game.ScreenStack.CurrentScreen is Editor);
}
[Test]
public void TestMetadata()
{