I thought I had seen this issue raised, but I cannot find it. If this is a duplicate, I apologize.
If I have a test method:
Method (int arg1, string arg2, param object[] arg3)
I would hope to be able to past it an object from a TestCaseSource like:
new object[] {1, "abc", obj1, obj2, obj3, ...}
However, that results in a "Too many arguments provided" error.
Shouldn't TestCaseSourceAttribute detect the params and package all the remaining arguments as an object array rather then generating the error?
I thought I had seen this issue raised, but I cannot find it. If this is a duplicate, I apologize.
If I have a test method:
Method (int arg1, string arg2, param object[] arg3)
I would hope to be able to past it an object from a TestCaseSource like:
new object[] {1, "abc", obj1, obj2, obj3, ...}
However, that results in a "Too many arguments provided" error.
Shouldn't TestCaseSourceAttribute detect the params and package all the remaining arguments as an object array rather then generating the error?