示例#1
0
 public void mission_control_should_execute_mission_parts_when_messages_arrive()
 {
     using (var test_subject = new MissionControl())
     {
         test_subject.send_out_fools_to(orc_raid());
         test_subject.announce(new ElvesFound());
         test_subject.announce_and_wait(new SayGo(), TimeSpan.FromMinutes(100))
             .Should()
             .BeTrue();
         should_have_spawned_orcs(1);
         all_orcs_should_have_raided();
     }
 }
示例#2
0
 public void mission_control_should_spawn_missions_parts_when_spawn_messages_arrive()
 {
     using (var test_subject = new MissionControl())
     {
         var raid = orc_raid();
         should_be_no_orcs();
         test_subject.send_out_fools_to(raid);
         test_subject.announce(new ElvesFound());
         test_subject.announce_and_wait(new ElvesFound(), TimeSpan.FromMilliseconds(100))
             .Should()
             .BeTrue();
         should_have_spawned_orcs(2);
     }
 }