WonPoint() public méthode

public WonPoint ( string player ) : void
player string
Résultat void
        public void NonExistingNameWonPoint()
        {
            var game = new TennisGame2("player1", "player2");

            game.WonPoint("player3");
            Assert.AreEqual(game.GetScore(), "Love-All");
        }
        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");
        }