예제 #1
0
        public void InitialGameScoreShouldBeLoveLove()
        {
            var game = new Tennis();

            var score = game.Score();

            Assert.Equal("LOVE-LOVE", score);
        }
예제 #2
0
        public void BGetFirstPointScoreShouldBeLove_15()
        {
            var game = new Tennis();

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

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

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

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

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

            Assert.Equal("30-LOVE", score);
        }
예제 #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);
        }
예제 #6
0
 public TennisTests()
 {
     _tennis = new Tennis("Joey", "John");
 }