mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Reword test steps for consistency & fix typo
This commit is contained in:
@ -64,17 +64,17 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
{
|
{
|
||||||
AddStep("create catcher", () => createCatcher(5));
|
AddStep("create catcher", () => createCatcher(5));
|
||||||
|
|
||||||
AddStep("Toggle hit lighting", () => config.Set(OsuSetting.HitLighting, enable));
|
AddStep("toggle hit lighting", () => config.Set(OsuSetting.HitLighting, enable));
|
||||||
AddStep("Catch fruit", () => catchFruit(new TestFruit(false)
|
AddStep("catch fruit", () => catchFruit(new TestFruit(false)
|
||||||
{
|
{
|
||||||
X = catcher.X
|
X = catcher.X
|
||||||
}));
|
}));
|
||||||
AddStep("Catch fruit last combo", () => catchFruit(new TestFruit(false)
|
AddStep("catch fruit last in combo", () => catchFruit(new TestFruit(false)
|
||||||
{
|
{
|
||||||
X = catcher.X,
|
X = catcher.X,
|
||||||
LastInCombo = true
|
LastInCombo = true
|
||||||
}));
|
}));
|
||||||
AddAssert("Check hit explotion", () => catcher.ChildrenOfType<HitExplosion>().Any() == enable);
|
AddAssert("check hit explosion", () => catcher.ChildrenOfType<HitExplosion>().Any() == enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void catchFruit(Fruit fruit, bool miss = false)
|
private void catchFruit(Fruit fruit, bool miss = false)
|
||||||
|
Reference in New Issue
Block a user