How do you use several TestCaseSource attributes to submit test data for a test in N-Unit 2.62?
I am currently doing the following:
[Test, Combinatorial, TestCaseSource(typeof(FooFactory), "GetFoo"), TestCaseSource(typeof(BarFactory), "GetBar")] FooBar(Foo x, Bar y) {
And my test case data sources look like this:
internal sealed class FooFactory { public IEnumerable<Foo> GetFoo() {
Unfortunately, the N-Unit will not even begin testing, as it says that I am supplying the wrong number of arguments. I know that you can specify TestCaseObject as the return type and pass an array of objects, but I thought this approach is possible.
Can you help me solve this problem?
elucid8
source share