I am trying to upgrade from NUnit 2 to NUnit 3.
And I built a Data-Driven-Helper to read test case data from several type of data files.
I found that NUnit 3.2's TestCaseSource that can pass parameters can help improve my Data-Driven-Helper, however, the problem is it keeps tell me "Message: System.Reflection.TargetParameterCountException: Parameter count mismatch."
Here are test codes:
static public IEnumerable GetCases(string a)
{
yield return new object[] { "1", 1 };
}
[TestCaseSource(typeof(BaseFixtureTest), "GetCases", new object[] {"a"})]
public void someTest(string Path, int deg)
{
//*** some test logic
}