Exemplo n.º 1
0
        public void InitialGameScoreShouldBeLoveLove()
        {
            var game = new Tennis();

            var score = game.Score();

            Assert.Equal("LOVE-LOVE", score);
        }
Exemplo n.º 2
0
        public void BGetFirstPointScoreShouldBeLove_15()
        {
            var game = new Tennis();

            game.BGetPoint();
            var score = game.Score();

            Assert.Equal("LOVE-15", score);
        }
Exemplo n.º 3
0
        public void AGetFirstPointScoreShouldBe15_Love()
        {
            var game = new Tennis();

            game.AGetPoint();
            var score = game.Score();

            Assert.Equal("15-LOVE", score);
        }
Exemplo n.º 4
0
        public void AGetSecondPointScoreShouldBe30_Love()
        {
            var game = new Tennis();

            game.AGetPoint();
            game.AGetPoint();
            var score = game.Score();

            Assert.Equal("30-LOVE", score);
        }
Exemplo n.º 5
0
        public void AGetForthPointScoreShouldBeWinForA()
        {
            var game = new Tennis();

            game.AGetPoint();
            game.AGetPoint();
            game.AGetPoint();
            game.AGetPoint();
            var score = game.Score();

            Assert.Equal("WIN FOR A", score);
        }
Exemplo n.º 6
0
 public TennisTests()
 {
     _tennis = new Tennis("Joey", "John");
 }