Ejemplo n.º 1
0
        public void Calculate_points_respects_score_did_not_finish_false()
        {
            var pointsSystem = new TopResultOnlyPointsSystem();

            var results = new List<RaceEntry>
            {
                FakesFactory.RaceEntry(pointsSystem, 1, true),
                FakesFactory.RaceEntry(pointsSystem, 2, true),
                FakesFactory.RaceEntry(pointsSystem, 3, true)
            };

            var points = pointsSystem.CalculateSeasonPoints(results);

            Assert.AreEqual(0, points);
        }
Ejemplo n.º 2
0
        public void Calculate_season_points_respects_top_results()
        {
            var pointsSystem = new TopResultOnlyPointsSystem();

            var results = new List<RaceEntry>
            {
                FakesFactory.RaceEntry(pointsSystem, 1),
                FakesFactory.RaceEntry(pointsSystem, 2),
                FakesFactory.RaceEntry(pointsSystem, 3)
            };

            var points = pointsSystem.CalculateSeasonPoints(results);

            Assert.AreEqual(9, points);
        }