@Test public void bothPlayerDrawWithFifteenShouldReturnFifteenAll() throws Exception { tennisGame.playerScore(15, 0); tennisGame.playerScore(0, 15); String score = tennisGame.getScore(); assertEquals("Fifteen all", score); }
@Test public void playerBWinOneBallAfterDeuceShouldReturnAdvantagePlayerB() throws Exception { tennisGame.playerScore(40, 50); String score = tennisGame.getScore(); assertEquals("Advantage Player B", score); }
@Test public void playerBWinFirstFourBallShouldReturnWinForPlayerB() throws Exception { tennisGame.playerScore(0, 50); String score = tennisGame.getScore(); assertEquals("Win For Player B", score); }
@Test public void bothPlayerDrawWithFortyShouldReturnDuce() throws Exception { tennisGame.playerScore(40, 40); String score = tennisGame.getScore(); assertEquals("Deuce", score); }
@Test public void playerAWinFirstThreeBallShouldReturnFortyLove() throws Exception { tennisGame.playerScore(40, 0); String score = tennisGame.getScore(); assertEquals("Forty Love", score); }
@Test public void playerBWinInFirstBallShouldReturnLoveFifteen() throws Exception { tennisGame.playerScore(0, 15); String score = tennisGame.getScore(); assertEquals("Love Fifteen", score); }
@Test public void playerAWinFirstBallShouldReturnFifteenLove() throws Exception { tennisGame.playerScore(15, 0); String score = tennisGame.getScore(); assertEquals("Fifteen Love", score); }