コード例 #1
0
        public void TestGsPerformanceReportRunningBacksWeek12()
        {
            var pr   = new PerformanceReport(season: "2012", week: 12);
            var week = new NFLWeek(seasonIn: 2012, weekIn: 12, loadGames: false);
            var gs   = new GS4Scorer(week)
            {
                ScoresOnly = true, Master = new GridStatsMaster("GridStats", "GridStats.xml")
            };

            pr.Scorer = gs;
            pr.Render(catCode: "2", sPos: "RB", leagueId: Constants.K_LEAGUE_Gridstats_NFL1, startersOnly: true);
            Assert.IsTrue(File.Exists(pr.FileOut), string.Format("Cannot find {0}", pr.FileOut));
        }
コード例 #2
0
        public void TestEspnPerformanceReportRunningBacksWeek5()
        {
            var pr   = new PerformanceReport(season: "2012", week: 5);
            var week = new NFLWeek(seasonIn: 2012, weekIn: 5, loadGames: false);
            var gs   = new EspnScorer(week)
            {
                ScoresOnly = true
            };

            pr.Scorer = gs;
            pr.Render(catCode: "2", sPos: "RB", leagueId: Constants.K_LEAGUE_Yahoo, startersOnly: true);
            Assert.IsTrue(File.Exists(pr.FileOut), string.Format("Cannot find {0}", pr.FileOut));
        }