I want to pass an array of strings to one of my XUnit methods, but when I just do the following, it doesn't work (array + params mechanism)
[Theory] [InlineData(new object[] { "2000-01-02", "2000-02-01" })] public void TestSynchronizeMissionStaffing_PeriodNoMatch(string[] dateStrings)
I can work around the problem as follows:
[Theory] [InlineData(0, new object[] { "2000-01-02", "2000-02-01" })] public void TestSynchronizeMissionStaffing_PeriodNoMatch(int dummy, string[] dateStrings)
But I hope you can solve the problem.
Can you tell me?
Serge Intern
source share