コード例 #1
0
        public void ThirtyAll()
        {
            var tennis = new Tennis();
            var score  = tennis.Score(30, 30);

            Assert.AreEqual("Thirty All", score);
        }
コード例 #2
0
        public void ThirtyFifteen()
        {
            var tennis = new Tennis();
            var score  = tennis.Score(30, 15);

            Assert.AreEqual("Thirty Fifteen", score);
        }
コード例 #3
0
        public void LoveAll()
        {
            var tennis = new Tennis();
            var score  = tennis.Score(0, 0);

            Assert.AreEqual("Love All", score);
        }
コード例 #4
0
        public void LoveFifteen()
        {
            var tennis = new Tennis();
            var score  = tennis.Score(0, 15);

            Assert.AreEqual("Love Fifteen", score);
        }
コード例 #5
0
        public void FifteenThirty()
        {
            var tennis = new Tennis();
            var score  = tennis.Score(15, 30);

            Assert.AreEqual(15, 30);
        }
コード例 #6
0
        public void FifteenLove()
        {
            var tennis = new Tennis();
            var score  = tennis.Score(15, 0);

            Assert.AreEqual("Fifteen Love", score);
        }
コード例 #7
0
        public void FifteenAll()
        {
            var tennis = new Tennis();

            tennis.Score(15, 15);
        }
コード例 #8
0
 private void ScoreShouldBe(string expected)
 {
     Assert.AreEqual(expected, _tennis.Score());
 }
コード例 #9
0
        private void ScoreShouldBe(string expectedScore)
        {
            var score = _tennis.Score();

            Assert.AreEqual(expectedScore, score);
        }