1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Added an extra unit test when actually catching the last banana to also clear the plate

This commit is contained in:
Darius Wattimena 2021-11-18 20:23:42 +01:00
parent cfedbb92c1
commit 9685892b94

View File

@ -169,7 +169,7 @@ namespace osu.Game.Rulesets.Catch.Tests
}
[Test]
public void TestLastBananaShouldClearPlate()
public void TestLastBananaShouldClearPlateOnMiss()
{
AddStep("catch fruit", () => attemptCatch(new Fruit()));
checkPlate(1);
@ -179,6 +179,17 @@ namespace osu.Game.Rulesets.Catch.Tests
checkPlate(0);
}
[Test]
public void TestLastBananaShouldClearPlateOnCatch()
{
AddStep("catch fruit", () => attemptCatch(new Fruit()));
checkPlate(1);
AddStep("catch banana", () => attemptCatch(new Banana()));
checkPlate(2);
AddStep("catch last banana", () => attemptCatch(new Banana { LastInCombo = true }));
checkPlate(0);
}
[Test]
public void TestCatcherRandomStacking()
{