public void second_task_does_not_start_on_second_stage_on_first_stage_completion() { _q.Process(); _q.Process(); _t2.Complete(); _q.Process(); _q.Process(); Assert.That(!_t2.StartedOn(1)); }
public void two_process_execute_both_tasks_at_stage_zero() { _q.Process(); _q.Process(); Assert.That(_t1.StartedOn(0)); Assert.That(_t2.StartedOn(0)); }
public void two_process_execute_only_the_first_task() { _q.Process(); _q.Process(); Assert.That(_t1.StartedOn(0)); Assert.That(!_t2.StartedOn(0)); }
public void first_task_starts_on_second_stage_on_first_stage_completion() { _q.Process(); _q.Process(); _t1.Complete(); _q.Process(); Assert.That(_t1.StartedOn(1)); }
public void process_executes_the_task_at_stage_zero() { _q.Process(); Assert.That(_t1.StartedOn(0)); }
public void start_processing_second_and_third_tasks_on_stage_one() { Assert.That(_t1.StartedOn(0)); Assert.That(_t2.StartedOn(1)); Assert.That(_t3.StartedOn(1)); }
public void process_waits_for_the_first_task_to_complete() { Assert.That(_t1.StartedOn(0)); Assert.That(_t2.StartedOn(0)); }
public void process_does_not_execute_a_task() { _q.Process(); Assert.That(!_t1.StartedOn(0)); }
public void process_executes_the_task_up_to_stage_one() { _q.Process(max: 2); Assert.That(_t1.StartedOn(1)); }