public void TestFrequencyTables()
        {
            var po = new PlayerOutput
            {
                PlayerType = "RBs Scores",
                ScoreType  = Constants.K_SCORE_TD_RUN,
                ScoreSlot  = "1",
                wRange     = { startWeek = new NFLWeek(2012, 1), endWeek = new NFLWeek(2012, 17) },
                Scorer     = new GS4Scorer(Utility.CurrentNFLWeek())
                {
                    ScoresOnly = true
                }
            };

            po.Load();
            po.Render(po.PlayerType, po.wRange.startWeek.Season);
            var fileOut = po.FileName;

            Assert.IsTrue(File.Exists(fileOut), string.Format("Cannot find {0}", fileOut));
        }
Exemplo n.º 2
0
        public void PlayerOutputRBTest()
        {
            //SeasonFreqTableGs4("Kickers", Constants.K_SCORE_FIELD_GOAL, "1", scoresOnly: false);
            //SeasonFreqTableGs4("QBs Scores", Constants.K_SCORE_TD_PASS, "2", scoresOnly: true);
            //SeasonFreqTableGs4("RBs Scores", Constants.K_SCORE_TD_RUN, "1", scoresOnly: true);
            //SeasonFreqTableGs4("WRs Scores", Constants.K_SCORE_TD_PASS, "1", scoresOnly: true);
            var po = new PlayerOutput
            {
                PlayerType = "RBs Scores",
                ScoreType  = Constants.K_SCORE_TD_RUN,
                ScoreSlot  = "1",
                wRange     = { startWeek = new NFLWeek(2012, 1), endWeek = new NFLWeek(2012, 17) },
                Scorer     = new GS4Scorer(Utility.CurrentNFLWeek())
                {
                    ScoresOnly = true
                }
            };

            po.Load();
            po.Render(po.PlayerType, po.wRange.startWeek.Season);

            Assert.IsTrue(true);
        }