public new Test BuildFrom(MethodInfo method, Test parentSuite)
        {
            ITestCaseProvider testCaseProvider = Host.GetExtensionPoint("TestCaseProviders") as ITestCaseProvider;

            return(testCaseProvider.HasTestCasesFor(method)
                ? BuildParameterizedMethodSuite(method, parentSuite)
                : BuildSingleTestMethod(method, parentSuite, null, this.screenCapture, null));
        }
 /// <summary>
 /// Build a Test from the provided MethodInfo. Depending on
 /// whether the method takes arguments and on the availability
 /// of test case data, this method may return a single test
 /// or a group of tests contained in a ParameterizedMethodSuite.
 /// </summary>
 /// <param name="method">The MethodInfo for which a test is to be built</param>
 /// <param name="parentSuite">The test fixture being populated, or null</param>
 /// <returns>A Test representing one or more method invocations</returns>
 public Test BuildFrom(MethodInfo method, Test parentSuite)
 {
     return(testCaseProvider.HasTestCasesFor(method)
         ? BuildParameterizedMethodSuite(method, parentSuite)
         : BuildSingleTestMethod(method, parentSuite, null));
 }