public void WonPoint(string player) { if (player == "player1") P1Score(); else P2Score(); }
public void NonExistingNameWonPoint() { var game = new TennisGame2("player1", "player2"); game.WonPoint("player3"); Assert.AreEqual(game.GetScore(), "Love-All"); }