Skip to content

TestCaseSource with Test Method with params arguments #1883

@oznetmaster

Description

@oznetmaster

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions