How can we pass a List<string> to a DataRow parameter in [DataTestMethod]
I am trying something like:
[DataTestMethod]
[DataRow(new List<string>() {"Iteam1"})]
[TestCategory(TestCategories.UnitTest)]
public void MyTest(IEnumerable<string> myStrings)
{
// ...
}
I am getting a compile error:
An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type
Is it even possible to pass List like this?