mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 06:23:20 +08:00
Nudge test coverage to also cover discovered fail case
This commit is contained in:
parent
b45fedc356
commit
eb725ec1fb
@ -244,11 +244,8 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
InputManager.PressKey(Key.ControlLeft);
|
InputManager.PressKey(Key.ControlLeft);
|
||||||
});
|
});
|
||||||
AddStep("drag to left corner", () => InputManager.MoveMouseTo(blueprintContainer.ScreenSpaceDrawQuad.TopRight + new Vector2(5, -5)));
|
AddStep("drag to left corner", () => InputManager.MoveMouseTo(blueprintContainer.ScreenSpaceDrawQuad.TopRight + new Vector2(5, -5)));
|
||||||
AddStep("end dragging", () =>
|
AddStep("end dragging", () => InputManager.ReleaseButton(MouseButton.Left));
|
||||||
{
|
AddStep("release control", () => InputManager.ReleaseKey(Key.ControlLeft));
|
||||||
InputManager.ReleaseButton(MouseButton.Left);
|
|
||||||
InputManager.ReleaseKey(Key.ControlLeft);
|
|
||||||
});
|
|
||||||
|
|
||||||
AddAssert("4 hitobjects selected", () => EditorBeatmap.SelectedHitObjects, () => Has.Count.EqualTo(4));
|
AddAssert("4 hitobjects selected", () => EditorBeatmap.SelectedHitObjects, () => Has.Count.EqualTo(4));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user