private void ExecuteTestSuite( TestSuite suite, UnitTestRunner.ITestRunnerCallback testRunnerEventListener, TestFilter filter ) { EventListener eventListener; if (testRunnerEventListener == null) eventListener = new NullListener (); else eventListener = new TestRunnerEventListener (testRunnerEventListener); suite.Run(eventListener, GetFilter(filter)); }
private NUnit.Core.TestResult ExecuteTestSuite(TestSuite suite, UnitTestRunner.ITestRunnerCallback testRunnerEventListener, ITestFilter filter) { var result = suite.Run(new TestRunnerEventListener(testRunnerEventListener), filter); return result; }
private void ExecuteTestSuite(TestSuite suite, ITestRunnerCallback testRunnerEventListener, TestFilter filter) { EventListener eventListener; if (testRunnerEventListener == null) eventListener = new NullListener(); else eventListener = new TestRunnerEventListener(testRunnerEventListener); TestExecutionContext.CurrentContext.Out = new EventListenerTextWriter(eventListener, TestOutputType.Out); TestExecutionContext.CurrentContext.Error = new EventListenerTextWriter(eventListener, TestOutputType.Error); suite.Run(eventListener, GetFilter(filter)); }