public void TestPrdictions() { var predictor = new UnitPredictor { TakeActuals = true, AuditTrail = true, WriteProjection = false, StorePrediction = true, RatingsService = new UnitRatingsService() }; var TDp = predictor.TouchdownPasses("A", "E"); Assert.AreEqual(3, TDp); }
public void TestUnitPredictorPredictGame2() { var predictor = new UnitPredictor { TakeActuals = true, AuditTrail = true, WriteProjection = false, StorePrediction = true, RatingsService = new UnitRatingsService() }; var game = new NFLGame("2013:01-B"); // NE @ BB var result = predictor.PredictGame(game, new FakePredictionStorer(), Utility.StartOfSeason()); Assert.IsTrue(result.HomeWin()); Assert.IsTrue(result.HomeScore.Equals(20), string.Format("Home score should be 34 not {0}", result.HomeScore)); Assert.IsTrue(result.AwayScore.Equals(31), string.Format("Away score should be 10 not {0}", result.AwayScore)); }
public void TestUnitPredictorPredictGameWeek8() { var predictor = new UnitPredictor { TakeActuals = true, AuditTrail = true, WriteProjection = false, StorePrediction = true, RatingsService = new UnitRatingsService() }; var game = new NFLGame("2013:08-E"); // BB @ NO var result = predictor.PredictGame(game, new FakePredictionStorer(), new DateTime(2013, 10, 17)); Assert.IsTrue(result.HomeWin()); Assert.IsTrue(result.HomeScore.Equals(34), string.Format("Home score should be 34 not {0}", result.HomeScore)); Assert.IsTrue(result.AwayScore.Equals(10), string.Format("Away score should be 10 not {0}", result.AwayScore)); Assert.IsTrue(result.AwayTDr.Equals(0), string.Format("Away TDR should be 0 not {0}", result.AwayTDr)); Assert.IsTrue(result.AwayTDp.Equals(1), string.Format("Away TDP should be 1 not {0}", result.AwayTDp)); Assert.IsTrue(result.AwayYDp.Equals(250), string.Format("Away YDP should be 222 not {0}", result.AwayYDp)); }