mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 05:52:54 +08:00
Update test to match new behaviour
This commit is contained in:
parent
371ca4cc4b
commit
e4f90719ed
@ -25,8 +25,10 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
AddStep("store catcher position", () => catcherPosition = drawableRuleset.ChildrenOfType<Catcher>().Single().X);
|
AddStep("store catcher position", () => catcherPosition = drawableRuleset.ChildrenOfType<Catcher>().Single().X);
|
||||||
AddStep("hold down left", () => InputManager.PressKey(Key.Left));
|
AddStep("hold down left", () => InputManager.PressKey(Key.Left));
|
||||||
AddAssert("catcher didn't move", () => drawableRuleset.ChildrenOfType<Catcher>().Single().X, () => Is.EqualTo(catcherPosition));
|
AddAssert("catcher didn't move", () => drawableRuleset.ChildrenOfType<Catcher>().Single().X, () => Is.EqualTo(catcherPosition));
|
||||||
|
AddStep("release left", () => InputManager.ReleaseKey(Key.Left));
|
||||||
|
|
||||||
AddStep("detach replay", () => drawableRuleset.SetReplayScore(null));
|
AddStep("detach replay", () => drawableRuleset.SetReplayScore(null));
|
||||||
|
AddStep("hold down left", () => InputManager.PressKey(Key.Left));
|
||||||
AddUntilStep("catcher moved", () => drawableRuleset.ChildrenOfType<Catcher>().Single().X, () => Is.Not.EqualTo(catcherPosition));
|
AddUntilStep("catcher moved", () => drawableRuleset.ChildrenOfType<Catcher>().Single().X, () => Is.Not.EqualTo(catcherPosition));
|
||||||
AddStep("release left", () => InputManager.ReleaseKey(Key.Left));
|
AddStep("release left", () => InputManager.ReleaseKey(Key.Left));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user