public void Given_the_game_has_just_started_when_I_advance_to_the_next_round_twice_then_it_will_be_round_3() { var game = new Game(); game.Start(); game.NextRound(); game.NextRound(); var result = game.GetCurrentRound(); Assert.That(result, Is.EqualTo(3)); }
public void Given_the_game_has_just_started_when_I_advance_to_the_next_round_fourteen_times_then_an_exception_will_be_thrown() { var game = new Game(); game.Start(); for (int i = 0; i < 14; i++) { game.NextRound(); } }
public void Given_the_game_has_just_started_when_I_advance_to_the_next_round_thirteen_times_then_it_will_be_round_14() { var game = new Game(); game.Start(); for (int i = 0; i < 13; i++) { game.NextRound(); } var result = game.GetCurrentRound(); Assert.That(result, Is.EqualTo(14)); }
public void I_can_advance_the_game_to_the_next_round() { var game = new Game(); game.Start(); game.NextRound(); }
public void Given_the_game_has_started_when_I_fish_in_all_of_the_first_three_rounds_then_I_will_have_three_food() { var subject = new Game(); subject.Start(); subject.Fish(); subject.NextRound(); subject.Fish(); subject.NextRound(); subject.Fish(); subject.NextRound(); var result = subject.GetResources(); Assert.That(result.Food, Is.EqualTo(3)); }
private Game GameAtRound(int round) { var game = new Game(); game.Start(); for (int i = 1; i < round; i++) { game.NextRound(); } return game; }