Ejemplo n.º 1
0
        public void CanGetScore15A()
        {
            Game game = new Game();

            game.WinBall(2);
            game.WinBall(1);

            string score = game.Score;

            Assert.Equal("15/A", score);
        }
Ejemplo n.º 2
0
        public void CanGetScoreWhenPlayer1Wins2Balls()
        {
            Game game = new Game();

            game.WinBall(1);
            game.WinBall(1);

            string score = game.Score;

            Assert.Equal("30/0", score);
        }
Ejemplo n.º 3
0
        public void CanGetScoreWhenPlayer1WinsBallIfPlayer2HasAlreadyWonTwoBalls()
        {
            Game game = new Game();

            game.WinBall(2);
            game.WinBall(2);
            game.WinBall(1);

            string score = game.Score;

            Assert.Equal("15/30", score);
        }
Ejemplo n.º 4
0
        public void CanGetScoreAfterPlayer1AndPlayer2WinsBall()
        {
            Game game = new Game();

            game.WinBall(2);
            game.WinBall(1);
            game.WinBall(2);

            string score = game.Score;

            Assert.Equal("15/30", score);
        }
Ejemplo n.º 5
0
        public void CanGetScoreWhenPlayersHaveDeuce()
        {
            Game game = new Game();

            game.WinBall(2);
            game.WinBall(2);
            game.WinBall(1);
            game.WinBall(1);
            game.WinBall(2);
            game.WinBall(1);

            string score = game.Score;

            Assert.Equal("DEUCE", score);
        }