public void SimpleTest() { var scheduler = SingleThreadScheduler.RunOnSeparateThread(TestLifetime, "Test Scheduler"); DoTest(TestLifetime, scheduler); // IScheduler, but not TaskScheduler var schedulerWrapper = new MyTestSchedulerWrapper(scheduler); DoTest(TestLifetime, schedulerWrapper);
public SyncContext(MyTestSchedulerWrapper scheduler) { myScheduler = scheduler; }