public void NonExistingNameWonPoint() { var game = new TennisGame2("player1", "player2"); game.WonPoint("player3"); Assert.AreEqual(game.GetScore(), "Love-All"); }
public void TennisGame2ShouldAddScoreForPlayer1() { var game = new TennisGame2(); game.SetP1Score(1); game.SetP1Score(1); Assert.That(game.GetScore(), Is.EqualTo("Thirty-Love")); }
public void ActualPlayerHasWon() { var game = new TennisGame2("Vojta", "Jakub"); for (int i = 0; i < 6; ++i) { game.WonPoint("Vojta"); } Assert.AreEqual(game.GetScore(), "Win for Vojta"); }
public void CheckTennisGame2() { var game = new TennisGame2("player1", "player2"); CheckAllScores(game); }
public void CheckGame2() { var game = new TennisGame2("player1", "player2"); RealisticTennisGame(game); }
public void CheckTennisGame2() { var game = new TennisGame2(); CheckAllScores(game); }
public void CheckGame2() { TennisGame2 game = new TennisGame2("player1", "player2"); RealisticTennisGame(game); }
public void checkTennisGame2() { TennisGame2 game = new TennisGame2("player1", "player2"); checkAllScores(game); }
public void CheckGame2() { var game = new TennisGame2(); RealisticTennisGame(game); }
public void Tennis2Test(int p1, int p2, string expected) { var game = new TennisGame2("player1", "player2"); CheckAllScores(game, p1, p2, expected); }