Test implementation of IVsTaskSchedulerService which runs all the tasks on the same thread as the calling code
Inheritance: SVsTaskSchedulerService, IVsTaskSchedulerService
Beispiel #1
0
 public void TestInitialize()
 {
     this.serviceProvider  = new ConfigurableServiceProvider();
     this.threadingService = new SingleThreadedTaskSchedulerService();
     this.serviceProvider.RegisterService(typeof(SVsTaskSchedulerService), this.threadingService);
     this.testSubject = new SequentialProgressController(this.serviceProvider);
 }
Beispiel #2
0
 public void TestCleanup()
 {
     this.errorNotifier    = null;
     this.serviceProvider  = null;
     this.testSubject      = null;
     this.threadingService = null;
 }
 public void TestCleanup()
 {
     this.errorNotifier = null;
     this.serviceProvider = null;
     this.testSubject = null;
     this.threadingService = null;
 }
 public void TestInitialize()
 {
     this.serviceProvider = new ConfigurableServiceProvider();
     this.threadingService = new SingleThreadedTaskSchedulerService();
     this.serviceProvider.RegisterService(typeof(SVsTaskSchedulerService), this.threadingService);
     this.testSubject = new SequentialProgressController(this.serviceProvider);
 }
Beispiel #5
0
 public VsTask(SingleThreadedTaskSchedulerService owner, VsTaskRunContext context, Func <object> action)
 {
     owner.Should().NotBeNull();
     context.Should().NotBeNull();
     action.Should().NotBeNull();
     this.owner   = owner;
     this.context = context;
     this.action  = action;
 }
Beispiel #6
0
 public VsTask(SingleThreadedTaskSchedulerService owner, VsTaskRunContext context, Func <object> action)
 {
     Assert.IsNotNull(owner);
     Assert.IsNotNull(context);
     Assert.IsNotNull(action);
     this.owner   = owner;
     this.context = context;
     this.action  = action;
 }
 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 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;
        }
        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;
        }
 public VsTask(SingleThreadedTaskSchedulerService owner, VsTaskRunContext context, Func<object> action)
 {
     Assert.IsNotNull(owner);
     Assert.IsNotNull(context);
     Assert.IsNotNull(action);
     this.owner = owner;
     this.context = context;
     this.action = action;
 }