public void When_Players_Are_In_Deuce_One_Player_Scores(TennisPlayer player)
        {
            TennisGame game = new TennisGame();

            TennisPlayer otherPlayer = TennisPlayer.PlayerA;
            if (player == TennisPlayer.PlayerA)
                otherPlayer = TennisPlayer.PlayerB;

            game.Score(player);
            game.Score(player);
            game.Score(player);

            game.Score(otherPlayer);
            game.Score(otherPlayer);
            game.Score(otherPlayer);

            game.Score(otherPlayer);

            Assert.That(game.Points(otherPlayer), Is.EqualTo(TennisScore.Advantage));
        }
        public void When_PlayerA_scores_4times_PointsA_Equals_Game(TennisPlayer player)
        {
            TennisGame game = new TennisGame();

            game.Score(player);
            game.Score(player);
            game.Score(player);
            game.Score(player);

            Assert.That(game.Points(player), Is.EqualTo(TennisScore.Game));
        }