Example #1
0
        public void Then_Score_Is_Advantage_Player_One()
        {
            var game = Game.At(4, 3);

            Assert.AreEqual("Advantage Player One", game.Score);
        }
Example #2
0
        public void Then_Score_Is_Forty_Thirty()
        {
            var game = Game.At(3, 2);

            Assert.AreEqual("Forty Thirty", game.Score);
        }
Example #3
0
        public void Then_Score_Is_Deuce()
        {
            var game = Game.At(3, 3);

            Assert.AreEqual("Deuce", game.Score);
        }
Example #4
0
        public void Then_Score_Is_Fifteen_Love()
        {
            var game = Game.At(1, 0);

            Assert.AreEqual("Fifteen Love", game.Score);
        }
Example #5
0
        public void Then_Score_Is_Love_Thirty()
        {
            var game = Game.At(0, 2);

            Assert.AreEqual("Love Thirty", game.Score);
        }
Example #6
0
        public void Then_Score_Is_Love_All()
        {
            var game = Game.At(0, 0);

            Assert.AreEqual("Love All", game.Score);
        }
Example #7
0
        public void Then_Score_Is_Fifteen_All()
        {
            var game = Game.At(1, 1);

            Assert.AreEqual("Fifteen All", game.Score);
        }
Example #8
0
        public void Then_Score_Is_Game_Player_Two()
        {
            var game = Game.At(5, 7);

            Assert.AreEqual("Game Player Two", game.Score);
        }
Example #9
0
        public void Then_Score_Is_Game_Player_One()
        {
            var game = Game.At(5, 3);

            Assert.AreEqual("Game Player One", game.Score);
        }
Example #10
0
        public void Then_Score_Is_Advantage_Player_Two()
        {
            var game = Game.At(4, 5);

            Assert.AreEqual("Advantage Player Two", game.Score);
        }
Example #11
0
 public Game ScorePlayerTwo()
 {
     return(Game.At(Points.PlayerOne, ++Points.PlayerTwo));
 }
Example #12
0
 public static Game Start()
 {
     return(Game.At(0, 0));
 }