mirror of
https://github.com/ppy/osu
synced 2025-02-08 22:27:14 +00:00
Added an extra unit test when actually catching the last banana to also clear the plate
This commit is contained in:
parent
cfedbb92c1
commit
9685892b94
@ -169,7 +169,7 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestLastBananaShouldClearPlate()
|
public void TestLastBananaShouldClearPlateOnMiss()
|
||||||
{
|
{
|
||||||
AddStep("catch fruit", () => attemptCatch(new Fruit()));
|
AddStep("catch fruit", () => attemptCatch(new Fruit()));
|
||||||
checkPlate(1);
|
checkPlate(1);
|
||||||
@ -179,6 +179,17 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
checkPlate(0);
|
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]
|
[Test]
|
||||||
public void TestCatcherRandomStacking()
|
public void TestCatcherRandomStacking()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user