public void UpdatesStateCorrectlyAfterGame(bool isHomeGame, int homeGoals, int awayGoals, int expPlayedGames, int expPoints, int expWins, int expDraws, int expLoses, int expGoalsFor, int expGoalsAg, int expGoalDif) { testStanding.AddGame(isHomeGame, homeGoals, awayGoals); Assert.True(testStanding.PlayedGames == expPlayedGames); Assert.True(testStanding.Points == expPoints); Assert.True(testStanding.Win == expWins); Assert.True(testStanding.Draw == expDraws); Assert.True(testStanding.Lose == expLoses); Assert.True(testStanding.Goals == expGoalsFor); Assert.True(testStanding.GoalsAgainst == expGoalsAg); Assert.True(testStanding.GoalDifference == expGoalDif); }
public void DoesNotAcceptNegativeNumberOfGoals(bool isHomeGame, int homeGoals, int awayGoals) { Standing s = new Standing("test"); Assert.Throws <ArgumentException>(() => { s.AddGame(isHomeGame, homeGoals, awayGoals); }); }