示例#1
0
 public void WillTestPlayerAWinsGame()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "Mati");
     newBoard.PlayerAScores();
     newBoard.PlayerAScores();
     newBoard.PlayerAScores();
     newBoard.PlayerAScores();
     Assert.AreEqual("Damian Wins Game", newBoard.GetResult());
 }
示例#2
0
 public void WillTestPlayersGetToDeuce()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "River");
     newBoard.PlayerAScores();
     newBoard.PlayerAScores();
     newBoard.PlayerAScores();
     newBoard.PlayerBScores();
     newBoard.PlayerBScores();
     newBoard.PlayerBScores();
     Assert.AreEqual("Deuce 40 - 40", newBoard.GetResult());
 }
示例#3
0
 public void WillTestPlayerBAdvantage()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "River");
     newBoard.PlayerAScores();
     newBoard.PlayerAScores();
     newBoard.PlayerAScores();
     newBoard.PlayerBScores();
     newBoard.PlayerBScores();
     newBoard.PlayerBScores();
     newBoard.PlayerBScores();
     Assert.AreEqual("Advantage River", newBoard.GetResult());
 }
示例#4
0
 public void WillTestBothPlayersScore()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "Mati");
     newBoard.PlayerAScores();
     newBoard.PlayerBScores();
     Assert.AreEqual("Damian: 15 - Mati: 15", newBoard.GetResult());
 }
示例#5
0
 public void WillTestThatPlayerOneScoresFirstPoint()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "Mati");
     newBoard.PlayerAScores();
     Assert.AreEqual("Damian: 15 - Mati: 0", newBoard.GetResult());
 }
示例#6
0
 public void WillTestScore40_0()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "Mati");
     newBoard.PlayerAScores();
     newBoard.PlayerAScores();
     newBoard.PlayerAScores();
     Assert.AreEqual("Damian: 40 - Mati: 0", newBoard.GetResult());
 }