public void Given_Thirty_Forty_when_right_scores_should_state_Thirty_Won() { var game = new Game(Score.Thirty, Score.Forty) .ScoreRight(); Assert.AreEqual(Score.Thirty, game.LeftScore); Assert.AreEqual(Score.Won, game.RightScore); }
public void Given_Thirty_Love_when_left_scores_should_state_Forty_Love() { var game = new Game(Score.Thirty, Score.Love) .ScoreLeft(); Assert.AreEqual(Score.Forty, game.LeftScore); Assert.AreEqual(Score.Love, game.RightScore); }
public void Given_Love_Love_when_left_scores_the_game_should_continue() { var game = new Game() .ScoreLeft(); Assert.IsFalse(game.HasEnded); }
public void Given_new_game_the_game_should_continue() { var game = new Game(); Assert.IsFalse(game.HasEnded); }
public void Given_Love_Love_when_left_scores_should_state_Fifteen_Love() { var game = new Game() .ScoreLeft(); Assert.AreEqual(Score.Fifteen, game.LeftScore); Assert.AreEqual(Score.Love, game.RightScore); }
public void Given_Forty_Love_when_left_scores_the_game_should_be_ended() { var game = new Game(Score.Forty, Score.Love) .ScoreLeft(); Assert.IsTrue(game.HasEnded); }
public void Given_Forty_Forty_when_left_scores_should_state_Advantage_Forty() { var game = new Game(Score.Forty, Score.Forty) .ScoreLeft(); Assert.AreEqual(Score.Advantage, game.LeftScore); Assert.AreEqual(Score.Forty, game.RightScore); }
public void Given_Advantage_Forty_when_right_scores_the_game_should_continue() { var game = new Game(Score.Advantage, Score.Forty) .ScoreRight(); Assert.IsFalse(game.HasEnded); }
public void Given_Advantage_Forty_when_left_scores_the_game_should_be_ended() { var game = new Game(Score.Advantage, Score.Forty) .ScoreLeft(); Assert.IsTrue(game.HasEnded); }