예제 #1
0
        public void TestSecondPlayerScore()
        {
            TennisGame game = new TennisGame("player1", "player2");

            game.SecondPlayerScore();
            int score = game.GetSecondPlaterScore();

            Assert.AreEqual(score, 1);
            game.SecondPlayerScore();
            score = game.GetSecondPlaterScore();
            Assert.AreEqual(score, 2);
        }