1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 10:42:54 +08:00

fix code quality

This commit is contained in:
OliBomby 2023-12-20 13:14:05 +01:00
parent f7cb6b9ed0
commit d000da725d

View File

@ -166,7 +166,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
[Test]
public void TestDragSliderTail()
{
AddStep($"move mouse to slider tail", () =>
AddStep("move mouse to slider tail", () =>
{
Vector2 position = slider.EndPosition + new Vector2(10, 0);
InputManager.MoveMouseTo(drawableObject.Parent!.ToScreenSpace(position));
@ -186,7 +186,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
AddAssert("expected distance halved",
() => Precision.AlmostEquals(slider.Path.Distance, 172.2, 0.1));
AddStep($"move mouse to slider tail", () =>
AddStep("move mouse to slider tail", () =>
{
Vector2 position = slider.EndPosition + new Vector2(10, 0);
InputManager.MoveMouseTo(drawableObject.Parent!.ToScreenSpace(position));
@ -196,7 +196,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
InputManager.PressKey(Key.ShiftLeft);
InputManager.PressButton(MouseButton.Left);
});
AddStep($"move mouse beyond last control point", () =>
AddStep("move mouse beyond last control point", () =>
{
Vector2 position = slider.Position + slider.Path.ControlPoints[2].Position + new Vector2(50, 0);
InputManager.MoveMouseTo(drawableObject.Parent!.ToScreenSpace(position));