public void WillTestPlayerBWinsGame() { TennisBoard newBoard = new TennisBoard("Damian", "River"); newBoard.PlayerBScores(); newBoard.PlayerBScores(); newBoard.PlayerBScores(); newBoard.PlayerBScores(); Assert.AreEqual("River Wins Game", newBoard.GetResult()); }
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()); }
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()); }
public void WillTestBothPlayersScore() { TennisBoard newBoard = new TennisBoard("Damian", "Mati"); newBoard.PlayerAScores(); newBoard.PlayerBScores(); Assert.AreEqual("Damian: 15 - Mati: 15", newBoard.GetResult()); }
public void WillTestThatPlayerTwoScoresFirstPoint() { TennisBoard newBoard = new TennisBoard("Damian", "Mati"); newBoard.PlayerBScores(); Assert.AreEqual("Damian: 0 - Mati: 15", newBoard.GetResult()); }