private static void applyResult(HitResult result, ref ScoringValues scoringValues) { if (!result.IsScorable()) { return; } if (result.IsBonus()) { scoringValues.BonusScore += result.IsHit() ? Judgement.ToNumericResult(result) : 0; } else { scoringValues.BaseScore += result.IsHit() ? Judgement.ToNumericResult(result) : 0; } if (result.IsBasic()) { scoringValues.CountBasicHitObjects++; } }
public void TestIsBonus(HitResult hitResult, bool expectedReturnValue) { Assert.AreEqual(expectedReturnValue, hitResult.IsBonus()); }