Update distance snap test when cursor at centre of grid to be in line with expectations

This commit is contained in:
Dean Herbert 2022-05-12 13:04:17 +09:00
parent effc92475b
commit fda61943b0
1 changed files with 8 additions and 1 deletions

View File

@ -113,7 +113,14 @@ public void TestDistanceSpacing(float multiplier)
public void TestCursorInCentre()
{
AddStep("move mouse to centre", () => InputManager.MoveMouseTo(grid.ToScreenSpace(grid_position)));
assertSnappedDistance(0);
assertSnappedDistance(beat_length);
}
[Test]
public void TestCursorAlmostInCentre()
{
AddStep("move mouse to almost centre", () => InputManager.MoveMouseTo(grid.ToScreenSpace(grid_position) + new Vector2(1)));
assertSnappedDistance(beat_length);
}
[Test]