/// <inheritdoc/>
        protected override bool FindTestsForType(ITestClass testClass, bool includeSourceInformation, IMessageBus messageBus, ITestFrameworkDiscoveryOptions discoveryOptions)
        {
            foreach (var method in testClass.Class.GetMethods(includePrivateMethods: true))
            {
                var testMethod = new TestMethod(testClass, method);
                if (!FindTestsForMethod(testMethod, includeSourceInformation, messageBus, discoveryOptions))
                    return false;
            }

            return true;
        }
Esempio n. 2
0
 /// <summary>
 /// This method calls the test method via reflection. This is an available override point
 /// if you need to do some other form of invocation of the actual test method.
 /// </summary>
 /// <param name="testClassInstance">The instance of the test class</param>
 /// <returns>The return value from the test method invocation</returns>
 protected virtual object CallTestMethod(object testClassInstance)
 => TestMethod.Invoke(testClassInstance, TestMethodArguments);