From 0fd445f913d44c2e89c2a291147167ac14c2735f Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Fri, 1 Sep 2023 20:42:27 +0900 Subject: [PATCH] Adjust test to fail --- osu.Game.Rulesets.Mania.Tests/TestSceneHoldNoteInput.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osu.Game.Rulesets.Mania.Tests/TestSceneHoldNoteInput.cs b/osu.Game.Rulesets.Mania.Tests/TestSceneHoldNoteInput.cs index 1bf768012e..5bc477535d 100644 --- a/osu.Game.Rulesets.Mania.Tests/TestSceneHoldNoteInput.cs +++ b/osu.Game.Rulesets.Mania.Tests/TestSceneHoldNoteInput.cs @@ -200,7 +200,9 @@ public void TestPressAtStartThenReleaseAndImmediatelyRepress() }); assertHeadJudgement(HitResult.Perfect); + assertCombo(1); assertTailJudgement(HitResult.Meh); + assertCombo(1); } /// @@ -519,6 +521,9 @@ private void assertTailJudgement(HitResult result) private void assertNoteJudgement(HitResult result) => AddAssert($"hold note judged as {result}", () => judgementResults.Single(j => j.HitObject is HoldNote).Type, () => Is.EqualTo(result)); + private void assertCombo(int combo) + => AddAssert($"combo is {combo}", () => currentPlayer.ScoreProcessor.Combo.Value, () => Is.EqualTo(combo)); + private ScoreAccessibleReplayPlayer currentPlayer = null!; private void performTest(List frames, Beatmap? beatmap = null)