i am trying to pass an object alongside with other parameters in the Row attribute of a unit test.
[Row("Test1", new CustomField(), 3)] // parameters MUST be string, object and int
public void Test_Constructor(string testType, CustomField customField, int num)
{
.....
}
but this will return an error:
An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type.
how can i do this....