private void RunTests(UnmanagedTestRepository repository, IProgressMonitor progressMonitor) { ITestContextManager testContextManager = new ObservableTestContextManager(TestContextTrackerAccessor.Instance, MessageSink); ITestCommandFactory testCommandFactory = new DefaultTestCommandFactory(); ITestCommand rootTestCommand = testCommandFactory.BuildCommands(TestModel, TestExecutionOptions.FilterSet, TestExecutionOptions.ExactFilter, testContextManager); reporter = new AssertionFailureReporter(repository); this.repository = repository; if (rootTestCommand != null) { if (TestExecutionOptions.SkipTestExecution) { SkipAll(rootTestCommand, null); } else { RunAll(progressMonitor, rootTestCommand); } } }
private void RunTests(UnmanagedTestRepository repository, IProgressMonitor progressMonitor) { ITestContextManager testContextManager = new ObservableTestContextManager(TestContextTrackerAccessor.Instance, MessageSink); ITestCommandFactory testCommandFactory = new DefaultTestCommandFactory(); ITestCommand rootTestCommand = testCommandFactory.BuildCommands(TestModel, TestExecutionOptions.FilterSet, TestExecutionOptions.ExactFilter, testContextManager); reporter = new AssertionFailureReporter(repository); this.repository = repository; if (rootTestCommand != null) { if (TestExecutionOptions.SkipTestExecution) { SkipAll(rootTestCommand, null); } else { RunAll(progressMonitor, rootTestCommand); } } }