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 TestAdvP2() { Game game = new Game(); for (int i = 0; i < 3; i++) { game.PlayerOneWinsPoint(); game.PlayerTwoWinsPoint(); } game.PlayerTwoWinsPoint(); Assert.AreEqual("advantage player two", game.Score()); }
public void TestLoveAll() { Game game = new Game(); Assert.AreEqual("love all", game.Score()); }
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()); }