public void TestGetScoreWithExternalStatistics(HitResult result, int expectedScore) { var statistic = new Dictionary <HitResult, int> { { result, 1 } }; scoreProcessor.ApplyBeatmap(new Beatmap { HitObjects = { new TestHitObject(result) } }); Assert.That(scoreProcessor.GetImmediateScore(ScoringMode.Standardised, result.AffectsCombo() ? 1 : 0, statistic), Is.EqualTo(expectedScore).Within(0.5d)); }
public void TestGetScoreWithExternalStatistics(HitResult result, int expectedScore) { var statistic = new Dictionary <HitResult, int> { { result, 1 } }; scoreProcessor.ApplyBeatmap(new Beatmap { HitObjects = { new TestHitObject(result) } }); Assert.That(scoreProcessor.ComputeFinalScore(ScoringMode.Standardised, new ScoreInfo { Ruleset = new TestRuleset().RulesetInfo, MaxCombo = result.AffectsCombo() ? 1 : 0, Statistics = statistic }), Is.EqualTo(expectedScore).Within(0.5d)); }
public void TestAffectsCombo(HitResult hitResult, bool expectedReturnValue) { Assert.AreEqual(expectedReturnValue, hitResult.AffectsCombo()); }