private static void TestYahooRankPointsCamNewtonWeek2() { var r2 = new SuggestedLineup( Constants.K_LEAGUE_Yahoo, Constants.KOwnerSteveColonna, "BB", Utility.CurrentSeason(), week: 2 ) { IncludeSpread = true, IncludeRatingModifier = false, IncludeFreeAgents = true }; var p = new NFLPlayer( "NEWTCA01" ); var g = new NFLGame( "2011:02-I" ); var t = new NflTeam( "GB" ); var pts = r2.RankPoints( p, g, t ); Assert.AreEqual( string.Format( "{0:0.0}", 7.7 ), string.Format( "{0:0.0}", pts ) ); }
private static void TestYahooRankPoints() { var r2 = new SuggestedLineup( Constants.K_LEAGUE_Yahoo, Constants.KOwnerSteveColonna, "BB", Utility.CurrentSeason(), 1 ) { IncludeSpread = true, IncludeRatingModifier = true, IncludeFreeAgents = true }; var p = new NFLPlayer( "INGRMA02" ); var g = new NFLGame( "2011:01-A" ); var t = new NflTeam( "GB" ); var pts = r2.RankPoints( p, g, t ); Assert.AreEqual( -5, pts ); }