Moved private methods beneath public ones

This commit is contained in:
Jess Meng 2020-12-15 20:50:23 -08:00
parent 456c0751fd
commit 8bd787dce9

View File

@ -208,13 +208,6 @@ namespace osu.Game.Tests.Visual.Online
AddAssert("All channels closed", () => !channelManager.JoinedChannels.Any()); AddAssert("All channels closed", () => !channelManager.JoinedChannels.Any());
} }
private void pressControlW()
{
AddStep("Press and hold Control", () => InputManager.PressKey(Key.ControlLeft));
AddStep("Press W", () => InputManager.Key(Key.W));
AddStep("Release Control", () => InputManager.ReleaseKey(Key.ControlLeft));
}
[Test] [Test]
public void TestCtrlWShortcut() public void TestCtrlWShortcut()
{ {
@ -240,13 +233,6 @@ namespace osu.Game.Tests.Visual.Online
AddAssert("All channels closed", () => !channelManager.JoinedChannels.Any()); AddAssert("All channels closed", () => !channelManager.JoinedChannels.Any());
} }
private void pressControlT()
{
AddStep("Press and hold Control", () => InputManager.PressKey(Key.ControlLeft));
AddStep("Press T", () => InputManager.Key(Key.T));
AddStep("Release Control", () => InputManager.ReleaseKey(Key.ControlLeft));
}
[Test] [Test]
public void TestCtrlTShortcut() public void TestCtrlTShortcut()
{ {
@ -270,6 +256,20 @@ namespace osu.Game.Tests.Visual.Online
InputManager.ReleaseKey(Key.AltLeft); InputManager.ReleaseKey(Key.AltLeft);
} }
private void pressControlW()
{
AddStep("Press and hold Control", () => InputManager.PressKey(Key.ControlLeft));
AddStep("Press W", () => InputManager.Key(Key.W));
AddStep("Release Control", () => InputManager.ReleaseKey(Key.ControlLeft));
}
private void pressControlT()
{
AddStep("Press and hold Control", () => InputManager.PressKey(Key.ControlLeft));
AddStep("Press T", () => InputManager.Key(Key.T));
AddStep("Release Control", () => InputManager.ReleaseKey(Key.ControlLeft));
}
private void clickDrawable(Drawable d) private void clickDrawable(Drawable d)
{ {
InputManager.MoveMouseTo(d); InputManager.MoveMouseTo(d);