Example #1
0
 public void unstarted_tasks_should_be_empty()
 {
     using (var scheduler = new TaskScheduler(5))
     {
         scheduler.Tasks.ShouldHaveCount(0);
     }
 }
Example #2
0
 public void can_use_multiple_tasks()
 {
     using (var scheduler = new TaskScheduler(5))
     {
         scheduler.Start(() => { });
         scheduler.Tasks.ShouldHaveCount(5);
     }
 }