public void TestInitialize() { this.testServiceProvider = new ConfigurableServiceProvider(); this.testVisualizer = new ConfigurableProgressVisualizer(); this.progressEvents = new ConfigurableProgressEvents(); this.testController = new ConfigurableProgressController(this.testServiceProvider); this.testController.Events = this.progressEvents; this.threadService = new SingleThreadedTaskSchedulerService(); this.testServiceProvider.RegisterService(typeof(SVsTaskSchedulerService), this.threadService); }
public void TestCleanup() { if (this.testSubject != null) { ((IDisposable)this.testSubject).Dispose(); this.testSubject = null; } this.testVisualizer = null; this.testServiceProvider = null; this.progressEvents = null; this.threadService = null; this.testController = null; }