mirror of https://github.com/ppy/osu
Added a unit test to cover clearing of the plate when missing the last banana
This commit is contained in:
parent
95891bc655
commit
cfedbb92c1
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue