public void unstarted_threads_should_be_empty() { using (var scheduler = new ThreadScheduler(5)) { scheduler.Threads.ShouldHaveCount(0); } }
public void can_use_multiple_threads() { using (var scheduler = new ThreadScheduler(5)) { scheduler.Start(() => { }); scheduler.Threads.ShouldHaveCount(5); } }