public void Game_should_not_be_played_before_started() { var game = new GameDomainModel() { DateTimePlayed = DateTime.Now.AddSeconds(-1), DateTimeStarting = DateTime.Now }; Assert.Throws <Exception>(() => game.ErrorCheck()); }
public void Game_should_not_have_score_if_not_played() { var game = new GameDomainModel() { FirstTeamScore = 3, SecondTeamScore = 2 }; Assert.Throws <Exception>(() => game.ErrorCheck()); }