コード例 #1
0
ファイル: ScoreProcessorTest.cs プロジェクト: shadiwolf/e
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
ファイル: ScoreProcessorTest.cs プロジェクト: shadiwolf/e
 public void TestAffectsCombo(HitResult hitResult, bool expectedReturnValue)
 {
     Assert.AreEqual(expectedReturnValue, hitResult.AffectsCombo());
 }