public void BaseTestFixtureSetUp() { this.BaseTestFixtureSetUpMethod(); var testTaskScheduler = new TplTestPlatformHelper.TestTaskScheduler(this.ExecuteTplTasks); TplTestPlatformHelper.SetDefaultScheduler(testTaskScheduler); }
/// <summary> /// Replaces the <see cref="ContextSpecificationBase.PreTestFixtureSetUp"/> method to set the <see cref="TplTestPlatformHelper.TestTaskScheduler"/> as the default scheduler. /// </summary> /// <param name="contextSpecification"> /// The target context specification instance. /// </param> private void SetupTestTaskScheduler(IContextSpecification contextSpecification) { var testTaskScheduler = new TplTestPlatformHelper.TestTaskScheduler(this.ExecuteTplTasks); TplTestPlatformHelper.SetDefaultScheduler(testTaskScheduler); }
/// <summary> /// Replaces the <see cref="ContextSpecificationBase.PreTestFixtureSetUp"/> method to set the <see cref="TplTestPlatformHelper.TestTaskScheduler"/> as the default scheduler. /// </summary> /// <param name="contextSpecification"> /// The target context specification instance. /// </param> private void SetupTestTaskScheduler(IContextSpecification contextSpecification) { var testTaskScheduler = new TplTestPlatformHelper.TestTaskScheduler(this.ExecuteTplTasks); TplTestPlatformHelper.SetDefaultScheduler(testTaskScheduler); }