Example #1
0
            public void CustomPostTestRunnerShouldBeReturnedByGetCustomPostTestRunners()
            {
                Type attributeType  = typeof(DummyAttribute);
                Type testRunnerType = typeof(DummyPostTestRunner);

                testRunnerFactory.AddTestRunnerForAttribute(testRunnerType, attributeType);
                var testRunners = testRunnerFactory.GetCustomPostTestRunners().ToList();

                Assert.NotEmpty(testRunners);
                Assert.True(testRunners.Count() == 1);
            }
Example #2
0
        /// <summary>
        /// Runs all user made test runners implementing <see cref="ICustomPostTestRunner"/>.
        /// </summary>
        /// <param name="methodInfo">The method to be run.</param>
        private void RunCustomPostTests(MethodInfo methodInfo)
        {
            var customTestRunners = _testRunnerFactory.GetCustomPostTestRunners();

            RunCustomTestRunners(customTestRunners, methodInfo);
        }