Reword test steps for consistency & fix typo

This commit is contained in:
Bartłomiej Dach 2020-07-16 20:17:37 +02:00
parent fbf3a09835
commit a8e96b3994
1 changed files with 4 additions and 4 deletions

View File

@ -64,17 +64,17 @@ public void TestHitLighting(bool enable)
{
AddStep("create catcher", () => createCatcher(5));
AddStep("Toggle hit lighting", () => config.Set(OsuSetting.HitLighting, enable));
AddStep("Catch fruit", () => catchFruit(new TestFruit(false)
AddStep("toggle hit lighting", () => config.Set(OsuSetting.HitLighting, enable));
AddStep("catch fruit", () => catchFruit(new TestFruit(false)
{
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,
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)