public static void PlayerTwoScore(this TennisGame tennisGame, int points) { for (int i = 0; i < points; i++) { tennisGame.PlayerTwoScore(); } }
public void PlayerTwoScoreOnePointLove30() { var tennisGame = new TennisGame(); tennisGame.PlayerTwoScore(2); Assert.Equal("love 30", tennisGame.GetScore()); }
public void DeuceThreePoints() { var tennisGame = new TennisGame(); tennisGame.PlayerOneScore(3); tennisGame.PlayerTwoScore(3); Assert.Equal("deuce", tennisGame.GetScore()); }
public void BothScoreTwice() { var tennisGame = new TennisGame(); tennisGame.PlayerOneScore(2); tennisGame.PlayerTwoScore(2); Assert.Equal("30 all", tennisGame.GetScore()); }
public void WinnerPlayerTwo() { var tennisGame = new TennisGame(); tennisGame.PlayerOneScore(2); tennisGame.PlayerTwoScore(4); Assert.Equal("winner player2", tennisGame.GetScore()); }
public void AdvantagePlayerTwo() { var tennisGame = new TennisGame(); tennisGame.PlayerOneScore(4); tennisGame.PlayerTwoScore(5); Assert.Equal("advantage player2", tennisGame.GetScore()); }
public void PlayerTwoWinFirstBall() { _game.PlayerTwoScore(); Assert.AreEqual("love-fifteen", _game.GetScore()); }