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); } } }
public void ContextManagerCannotBeNull() { var testCommandFactory = new DefaultTestCommandFactory(); testCommandFactory.BuildCommands(model, FilterSet <ITestDescriptor> .Empty, false, null); }
public void FilterCannotBeNull() { var testCommandFactory = new DefaultTestCommandFactory(); testCommandFactory.BuildCommands(model, null, false, Mocks.Stub <ITestContextManager>()); }
public void TestModelCannotBeNull() { var testCommandFactory = new DefaultTestCommandFactory(); testCommandFactory.BuildCommands(null, FilterSet <ITestDescriptor> .Empty, false, Mocks.Stub <ITestContextManager>()); }
private void BuildCommands(FilterSet <ITestDescriptor> filterSet, bool exactFilter) { var testCommandFactory = new DefaultTestCommandFactory(); rootCommand = testCommandFactory.BuildCommands(model, filterSet, exactFilter, Mocks.Stub <ITestContextManager>()); }