public void Given_the_game_has_started_then_I_can_day_labourer_for_wood() { var subject = new Game(); subject.Start(); subject.DayLabour("Wood"); }
public void Given_the_game_has_started_when_I_try_to_day_labour_for_gold_then_an_exception_will_be_thrown() { var subject = new Game(); subject.Start(); subject.DayLabour("Gold"); }
public void Given_the_game_has_started_then_I_can_fish() { var subject = new Game(); subject.Start(); subject.Fish(); }
public void Start_a_game() { var game = new Game(); game.Start(); _result = game.GetActionSpaces(); }
public void If_the_game_has_started_it_is_round_one() { var game = new Game(); game.Start(); var result = game.GetCurrentRound(); Assert.That(result, Is.EqualTo(1)); }
public void At_the_beginning_of_a_one_player_game_the_player_has_no_food() { var subject = new Game(); subject.Start(); var result = subject.GetResources(); Assert.That(result.Food, Is.EqualTo(0)); }
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_then_it_will_be_round_2() { var game = new Game(); game.Start(); game.NextRound(); var result = game.GetCurrentRound(); Assert.That(result, Is.EqualTo(2)); }
public void Given_its_my_first_move_of_the_game_when_I_day_labour_for_wood_then_I_will_have_the_correct_resources() { var subject = new Game(); subject.Start(); subject.DayLabour("Wood"); var result = subject.GetResources(); Assert.That(result.Food, Is.EqualTo(1)); Assert.That(result.Wood, Is.EqualTo(1)); Assert.That(result.Stone, Is.EqualTo(0)); Assert.That(result.Reed, Is.EqualTo(0)); }
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; }