public void TestAdvP1() { Game game = new Game(); for (int i = 0; i < 3; i++) { game.PlayerOneWinsPoint(); game.PlayerTwoWinsPoint(); } game.PlayerOneWinsPoint(); Assert.AreEqual("advantage player one", game.Score()); }
public void Test1515() { Game game = new Game(); game.PlayerOneWinsPoint(); game.PlayerTwoWinsPoint(); Assert.AreEqual("15 all", game.Score()); }
public void TestDeuce() { Game game = new Game(); for (int i = 0; i < 5; i++) { game.PlayerOneWinsPoint(); game.PlayerTwoWinsPoint(); } Assert.AreEqual("deuce", game.Score()); }
public void Test3030() { Game game = new Game(); for (int i = 0; i < 2; i++) { game.PlayerOneWinsPoint(); game.PlayerTwoWinsPoint(); } Assert.AreEqual("30 all", game.Score()); }
public void TestGameOver() { Game game = new Game(); game.PlayerTwoWinsPoint(); game.PlayerOneWinsPoint(); game.PlayerTwoWinsPoint(); game.PlayerTwoWinsPoint(); game.PlayerTwoWinsPoint(); Assert.AreEqual(true, game.GameOver); }
public void TestTripleGamePoint() { Game game = new Game(); for (int i = 0; i < 3; i++) { game.PlayerOneWinsPoint(); } Assert.AreEqual("40 - love", game.Score()); }
public void TestP2Wins() { Game game = new Game(); for (int i = 0; i < 3; i++) { game.PlayerOneWinsPoint(); game.PlayerTwoWinsPoint(); } game.PlayerTwoWinsPoint(); game.PlayerTwoWinsPoint(); Assert.AreEqual("player two wins", game.Score()); }