public void Rules_HcpAvgThirdFloored_Should_CalculateHcp_Scenario_1_2()
        {
            var avgScore = 50;
            var rule     = new RuleAvgThirdFloored(new HcpConfiguration {
                TotalRounds = 18
            });

            var value = rule.CalculateHcp(avgScore);

            Assert.IsTrue(value == 1.6);

            Assert.Pass();
        }
        public void Rules_HcpAvgThirdFloored_Should_CalculateAvgScore_NoRounds()
        {
            var rounds = new List <PlayerRound>();

            var rule = new RuleAvgThirdFloored(new HcpConfiguration {
                TotalRounds = 18
            });

            var value = rule.CalculateAvgScore(rounds);

            Assert.IsTrue(value == 0.0);

            Assert.Pass();
        }
        public void Rules_HcpAvgThirdFloored_Should_CalculateAvgScore_NotAll_Scenario_1_0()
        {
            var rounds = RoundObjectMother.GetRounds(new List <Tuple <DateTime, int> >
            {
                new Tuple <DateTime, int>(DateTime.Parse("2020-01-01"), 59)
            });


            var rule = new RuleAvgThirdFloored(new HcpConfiguration {
                TotalRounds = 18
            });

            var value = rule.CalculateAvgScore(rounds);

            Assert.IsTrue(value == 59.0);

            Assert.Pass();
        }