InspectCode fixes

This commit is contained in:
Fuewburvpoa 2020-03-18 23:03:58 +02:00
parent 648e9fa21f
commit 78bdf5cf91

View File

@ -32,7 +32,7 @@ namespace osu.Game.Tests.Visual.Editor
[Test] [Test]
public void TestBindableBeatDivisor() public void TestBindableBeatDivisor()
{ {
AddStep("Reset", () => reset()); AddStep("Reset", reset);
AddRepeatStep("Move previous", () => bindableBeatDivisor.Previous(), 4); AddRepeatStep("Move previous", () => bindableBeatDivisor.Previous(), 4);
AddAssert("Position at 4", () => bindableBeatDivisor.Value == 4); AddAssert("Position at 4", () => bindableBeatDivisor.Value == 4);
AddRepeatStep("Move next", () => bindableBeatDivisor.Next(), 3); AddRepeatStep("Move next", () => bindableBeatDivisor.Next(), 3);
@ -42,7 +42,7 @@ namespace osu.Game.Tests.Visual.Editor
[Test] [Test]
public void TestMouseInput() public void TestMouseInput()
{ {
AddStep("Reset", () => reset()); AddStep("Reset", reset);
AddStep("Move to marker", () => AddStep("Move to marker", () =>
{ {
InputManager.MoveMouseTo(beatDivisorControl, new Vector2(38, -18)); InputManager.MoveMouseTo(beatDivisorControl, new Vector2(38, -18));
@ -54,7 +54,7 @@ namespace osu.Game.Tests.Visual.Editor
InputManager.ReleaseButton(osuTK.Input.MouseButton.Left); InputManager.ReleaseButton(osuTK.Input.MouseButton.Left);
}); });
AddAssert("Position at 8", () => bindableBeatDivisor.Value == 8); AddAssert("Position at 8", () => bindableBeatDivisor.Value == 8);
AddStep("Prepare to move marker", () => { InputManager.PressButton(osuTK.Input.MouseButton.Left); }); AddStep("Prepare to move marker", () => InputManager.PressButton(osuTK.Input.MouseButton.Left));
AddStep("Trigger marker jump", () => AddStep("Trigger marker jump", () =>
{ {
InputManager.MoveMouseTo(beatDivisorControl, new Vector2(30, -18)); InputManager.MoveMouseTo(beatDivisorControl, new Vector2(30, -18));