NUnit.Framework.Internal.Builders.DefaultTestCaseBuilder
Class to build ether a parameterized or a normal NUnitTestMethod.
There are four cases that the builder must deal with:
1. The method needs no params and none are provided
2. The method needs params and they are provided
3. The method needs no params but they are provided in error
4. The method needs params but they are not provided
This could have been done using two different builders, but it
turned out to be simpler to have just one. The BuildFrom method
takes a different branch depending on whether any parameters are
provided, but all four cases are dealt with in lower-level methods
namespace NUnit.Framework.Internal.Builders
{
public class DefaultTestCaseBuilder : ITestCaseBuilder
{
public bool CanBuildFrom(IMethodInfo method);
public Test BuildFrom(IMethodInfo method);
public bool CanBuildFrom(IMethodInfo method, Test parentSuite);
public Test BuildFrom(IMethodInfo method, Test parentSuite);
public DefaultTestCaseBuilder();
}
}