public void Test_FourScoresPlayerOne_GameOver() { var game = new TennisGame(); game.ScorePoint(TennisGame.PLAYER_A); game.ScorePoint(TennisGame.PLAYER_A); game.ScorePoint(TennisGame.PLAYER_A); game.ScorePoint(TennisGame.PLAYER_A); Ashure.That(game.IsOver().IsTrue()); }
public void Test_FourScoresPlayerTwoAndThreeScoresPlayerOne_GameNotOver() { var game = new TennisGame(); game.ScorePoint(TennisGame.PLAYER_B); game.ScorePoint(TennisGame.PLAYER_B); game.ScorePoint(TennisGame.PLAYER_B); game.ScorePoint(TennisGame.PLAYER_A); game.ScorePoint(TennisGame.PLAYER_A); game.ScorePoint(TennisGame.PLAYER_A); game.ScorePoint(TennisGame.PLAYER_B); Ashure.That(game.IsOver().IsFalse()); }