Example #1
0
        public static Runner Create()
        {
            var exceptionFilter      = new NUnitExceptionFilter(printStacktrace: false);
            var viewTestFixture      = new ViewTestFixture(exceptionFilter);
            var inicjalizerView      = new InicjalizerView(exceptionFilter);
            var nUnitAssertionAction = new NUnitAssertionAction();
            var runInExclusiveGroupAttributeFilter = new RunInExclusiveGroupAttributeFilter();
            var traditionalTestAttributeFilter     = new TraditionalTestAttributeFilter();
            var testMethodSelector = new TestSelector(
                new NUnitTestMethodSelectorFromTestFixture(),
                new ITestMethodFilter[] { runInExclusiveGroupAttributeFilter, traditionalTestAttributeFilter },
                nUnitAssertionAction);
            var nUnitTestMethodSelectorFromCallStack = new NUnitTestMethodSelectorFromCallStack();

            return(new Runner(
                       exceptionFilter, viewTestFixture, inicjalizerView,
                       testMethodSelector, nUnitAssertionAction, nUnitTestMethodSelectorFromCallStack));
        }
Example #2
0
        public static Runner Create()
        {
            var exceptionFilter = new NUnitExceptionFilter(printStacktrace: false);
             var viewTestFixture = new ViewTestFixture(exceptionFilter);
             var inicjalizerView = new InicjalizerView(exceptionFilter);
             var nUnitAssertionAction = new NUnitAssertionAction();
             var runInExclusiveGroupAttributeFilter = new RunInExclusiveGroupAttributeFilter();
             var traditionalTestAttributeFilter = new TraditionalTestAttributeFilter();
             var testMethodSelector = new TestSelector(
            new NUnitTestMethodSelectorFromTestFixture(),
            new ITestMethodFilter[] { runInExclusiveGroupAttributeFilter, traditionalTestAttributeFilter },
            nUnitAssertionAction);
             var nUnitTestMethodSelectorFromCallStack = new NUnitTestMethodSelectorFromCallStack();

             return new Runner(
            exceptionFilter, viewTestFixture, inicjalizerView,
            testMethodSelector, nUnitAssertionAction, nUnitTestMethodSelectorFromCallStack);
        }