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

            var score = game.Score();

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

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

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

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

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

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

            Assert.Equal("30-LOVE", score);
        }
Beispiel #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);
        }
Beispiel #6
0
 private void ScoreShouldBe(string expected, int firstPlayerScore, int secondPlayerScore)
 {
     NUnit.Framework.Assert.AreEqual(expected, _tennis.Score(firstPlayerScore, secondPlayerScore));
 }
Beispiel #7
0
 private void ScoreShouldBe(string expected)
 {
     Assert.Equal(expected, _tennis.Score());
 }