Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public void Given_Love_Love_when_left_scores_the_game_should_continue()
 {
     var game = new Game()
         .ScoreLeft();
     Assert.IsFalse(game.HasEnded);
 }
Ejemplo n.º 4
0
 public void Given_new_game_the_game_should_continue()
 {
     var game = new Game();
     Assert.IsFalse(game.HasEnded);
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 7
0
 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);
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 9
0
 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);
 }