我正在尝试将一个对象与单元测试的Row属性中的其他参数一起传递。
[Row("Test1", new CustomField(), 3)] // parameters MUST be string, object and int
public void Test_Constructor(string testType, CustomField customField, int num)
{
.....
}
但这会返回错误:
An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type.
我该怎么做....