Ejemplo n.º 1
0
        public void Computes_AttackStrength_For_First_N_Matches()
        {
            var data = BuildTeamAndMatches(homeGoals: new[] { 1, 3, 4, 4, 4 });

            var rater  = new TeamRater(data);
            var result = rater.ComputeAttackStrength(2);

            Assert.AreEqual(2, result.AttackStrength);
        }
Ejemplo n.º 2
0
        public void Computes_AttackStrength_For_One_Match()
        {
            var data = BuildTeamAndMatches(homeGoals: 1);

            var rater  = new TeamRater(data);
            var result = rater.ComputeAttackStrength(19);

            Assert.AreEqual(1, result.AttackStrength);
        }