Adjust test to fail

This commit is contained in:
Dan Balasescu 2023-09-01 20:42:27 +09:00
parent c60f13dd92
commit 0fd445f913
1 changed files with 5 additions and 0 deletions

View File

@ -200,7 +200,9 @@ public void TestPressAtStartThenReleaseAndImmediatelyRepress()
});
assertHeadJudgement(HitResult.Perfect);
assertCombo(1);
assertTailJudgement(HitResult.Meh);
assertCombo(1);
}
/// <summary>
@ -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<ReplayFrame> frames, Beatmap<ManiaHitObject>? beatmap = null)