Also test with distance snap enabled for sanity

This commit is contained in:
Dean Herbert 2020-09-24 16:31:30 +09:00
parent 89ded2903c
commit ead6479442
1 changed files with 10 additions and 6 deletions

View File

@ -27,16 +27,20 @@ public override void SetUpSteps()
AddStep("get playfield", () => playfield = Editor.ChildrenOfType<OsuPlayfield>().First());
}
[Test]
public void TestHitCircleSnapsToOtherHitCircle()
[TestCase(true)]
[TestCase(false)]
public void TestHitCircleSnapsToOtherHitCircle(bool distanceSnapEnabled)
{
AddStep("move mouse to centre", () => InputManager.MoveMouseTo(playfield.ScreenSpaceDrawQuad.Centre));
AddStep("disable distance snap", () =>
if (!distanceSnapEnabled)
{
InputManager.PressKey(Key.Q);
InputManager.ReleaseKey(Key.Q);
});
AddStep("disable distance snap", () =>
{
InputManager.PressKey(Key.Q);
InputManager.ReleaseKey(Key.Q);
});
}
AddStep("enter placement mode", () =>
{