示例#1
0
        public void can_schedule_work()
        {
            var ran = false;

            using (var scheduler = TaskScheduler.Default())
            {
                scheduler.Start(() => ran = true);
                Wait.Until(() => ran).ShouldBeTrue();
            }
        }