1
0
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:
Bartłomiej Dach 2024-09-27 12:13:11 +02:00
parent b45fedc356
commit eb725ec1fb
No known key found for this signature in database

View File

@ -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));