Exemplo n.º 1
0
 public void WillTestBothPlayersScore()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "Mati");
     newBoard.PlayerAScores();
     newBoard.PlayerBScores();
     Assert.AreEqual("Damian: 15 - Mati: 15", newBoard.GetResult());
 }
Exemplo n.º 2
0
 public void WillTestPlayerBWinsGame()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "River");
     newBoard.PlayerBScores();
     newBoard.PlayerBScores();
     newBoard.PlayerBScores();
     newBoard.PlayerBScores();
     Assert.AreEqual("River Wins Game", newBoard.GetResult());
 }
Exemplo n.º 3
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());
 }
Exemplo n.º 4
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());
 }
Exemplo n.º 5
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());
 }
Exemplo n.º 6
0
 public void WillDisplayBoardResultWithGivenPlayerNamesAndScores()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "Mati");
     Assert.AreEqual("Damian: 0 - Mati: 0", newBoard.GetResult());
 }
Exemplo n.º 7
0
 public void WontDisplayBoardResultWithoutPlayerNames()
 {
     TennisBoard newBoard = new TennisBoard();
     Assert.AreNotEqual("Igor: 0 - Olaf: 0", newBoard.GetResult());
 }
Exemplo n.º 8
0
 public void WillTestThatPlayerTwoScoresFirstPoint()
 {
     TennisBoard newBoard = new TennisBoard("Damian", "Mati");
     newBoard.PlayerBScores();
     Assert.AreEqual("Damian: 0 - Mati: 15", newBoard.GetResult());
 }
Exemplo n.º 9
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());
 }
Exemplo n.º 10
0
 public void CanCreateNewBoard()
 {
     TennisBoard newBoard = new TennisBoard();
     Assert.IsNotNull(newBoard);
 }