Update framework

This commit is contained in:
Dean Herbert
2018-05-25 19:08:46 +09:00
parent 699f661b02
commit 8977670088
2 changed files with 4 additions and 4 deletions

View File

@ -44,13 +44,13 @@ namespace osu.Game.Tests.Visual
{ {
exitAction = false; exitAction = false;
InputManager.MoveMouseTo(quitButton); InputManager.MoveMouseTo(quitButton);
InputManager.ButtonDown(MouseButton.Left); InputManager.PressButton(MouseButton.Left);
}); });
AddStep("Early release", () => InputManager.ButtonUp(MouseButton.Left)); AddStep("Early release", () => InputManager.ReleaseButton(MouseButton.Left));
AddAssert("action not triggered", () => !exitAction); AddAssert("action not triggered", () => !exitAction);
AddStep("Trigger exit action", () => InputManager.ButtonDown(MouseButton.Left)); AddStep("Trigger exit action", () => InputManager.PressButton(MouseButton.Left));
AddUntilStep(() => exitAction, $"{nameof(quitButton.Action)} was triggered"); AddUntilStep(() => exitAction, $"{nameof(quitButton.Action)} was triggered");
} }
} }