public void Tasks_executed_using_SchedulerContext_Run_do_not_leak_to_other_threads()
        {
            var threadIds = new ConcurrentBag <int>();

            SchedulerContext.Run(() => RunTasksAndCollectThreadIds(threadIds));

            threadIds.Distinct().Count().Should().Be(1);
        }