How I can pass string[][]
arrays to ValuesAttribute?
I have:
public string[][] Array1 = new[] {new[] {"test1", "test2"}};
//...
[Test, Sequential]
public void SomeTest(
[Values("val1", "val2", "val3")] string param1,
[Values(Array1, Array2, Array3)] string[][] param2) { //... }
And I've got Cannot access non-static field "Array1" in static context
. Than I mark Array1
with static
keyword and than I've got An attribute argument must be a constant expression...
than I mark it with readonly
keyword and still I have An attribute argument must be a constant expression...
Is here any way to pass multiple arrays? (Except ugly string[][][]
and passing param2
indexes of relevant array[][]
in array[][][]
)