public void TearDown() { if (Scheduler != null) { Scheduler.Dispose(); } Scheduler = null; GC.Collect(); }