Added a unit test to cover clearing of the plate when missing the last banana

This commit is contained in:
Darius Wattimena 2021-11-18 20:07:03 +01:00
parent 95891bc655
commit cfedbb92c1
1 changed files with 11 additions and 0 deletions

View File

@ -168,6 +168,17 @@ public void TestBananaMissPreservesCatcherState()
checkHyperDash(false);
}
[Test]
public void TestLastBananaShouldClearPlate()
{
AddStep("catch fruit", () => attemptCatch(new Fruit()));
checkPlate(1);
AddStep("miss banana", () => attemptCatch(new Banana { X = 100 }));
checkPlate(1);
AddStep("miss last banana", () => attemptCatch(new Banana { LastInCombo = true, X = 100 }));
checkPlate(0);
}
[Test]
public void TestCatcherRandomStacking()
{