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_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 Trying_to_get_resources_when_the_game_has_not_started_will_throw_an_exception() { var subject = new Game(); subject.GetResources(); }
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)); }