Esempio n. 1
0
        public void TestPatriotsDefenseCalcs()
        {
            var        week         = new NFLWeek(2010, 17);
            ICalculate myCalculator = new DefensiveScoringCalculator(week, -1);
            var        team         = new NflTeam("NE");

            team.CalculateDefensiveScoring(myCalculator, doOpponent: false);
            Assert.AreEqual(17, myCalculator.Team.FantasyPoints);
            Assert.AreEqual(1, myCalculator.Team.TotInterceptions);
            Assert.AreEqual(5, myCalculator.Team.TotSacks);
        }