Пример #1
0
 public void advantage()
 {
     Assert.AreEqual("Player one advantage", Tennis.score(4, 3));
     Assert.AreEqual("Player one advantage", Tennis.score(5, 4));
     //exhausted test
     Assert.AreEqual("Player two advantage", Tennis.score(6, 7));
 }
Пример #2
0
 public void win()
 {
     Assert.AreEqual("Player one win", Tennis.score(4, 2));
     Assert.AreEqual("Player two win", Tennis.score(2, 4));
     //exhausted test
     Assert.AreEqual("Player two win", Tennis.score(6, 8));
 }
Пример #3
0
 public void equalScore()
 {
     Assert.AreEqual("Love all", Tennis.score(0, 0));
     Assert.AreEqual("Fifteen all", Tennis.score(1, 1));
     Assert.AreEqual("Thirty all", Tennis.score(2, 2));
     Assert.AreEqual("Forty all", Tennis.score(3, 3));
 }
Пример #4
0
 public void diffScore()
 {
     Assert.AreEqual("Fifteen Love", Tennis.score(1, 0));
     Assert.AreEqual("Thirty Love", Tennis.score(2, 0));
     //exhausted test
     Assert.AreEqual("Love Thirty", Tennis.score(0, 2));
     //Assert.AreEqual("Thirty Love", Tennis.score(0, 2));
 }
Пример #5
0
 public void deuce()
 {
     Assert.AreEqual("Deuce", Tennis.score(4, 4));
     //exhausted test
     Assert.AreEqual("Deuce", Tennis.score(6, 6));
 }