Add test coverage of no header doing nothing

This commit is contained in:
Dean Herbert 2022-02-01 16:55:28 +09:00
parent 0f83f77d2b
commit 15479ae046
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,12 @@ public void TestResetFromReplayFrame()
Assert.That(scoreProcessor.TotalScore.Value, Is.EqualTo(1_000_000));
Assert.That(scoreProcessor.JudgedHits, Is.EqualTo(1));
// No header shouldn't cause any change
scoreProcessor.ResetFromReplayFrame(new OsuRuleset(), new OsuReplayFrame());
Assert.That(scoreProcessor.TotalScore.Value, Is.EqualTo(1_000_000));
Assert.That(scoreProcessor.JudgedHits, Is.EqualTo(1));
// Reset with a miss instead.
scoreProcessor.ResetFromReplayFrame(new OsuRuleset(), new OsuReplayFrame
{