WonPoint() публичный Метод

public WonPoint ( string playerName ) : void
playerName string
Результат void
Пример #1
0
        public void NonExistingNameWonPoint()
        {
            var game = new TennisGame3("player1", "player2");

            game.WonPoint("player3");
            Assert.AreEqual(game.GetScore(), "Love-All");
        }
Пример #2
0
        public void ActualPlayerHasWon()
        {
            var game = new TennisGame3("Vojta", "Jakub");

            for (int i = 0; i < 6; ++i)
            {
                game.WonPoint("Vojta");
            }
            Assert.AreEqual(game.GetScore(), "Win for Vojta");
        }