Beispiel #1
0
        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);
                }
            }
        }
Beispiel #2
0
        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);
                }
            }
        }