Open weirdan opened 8 years ago
I'm unsure how to fix this immediately other than the below potential, but very ugly, workaround. However, for a brief synopsis of what I think the problem is: It seems that the argument 12
is attempting to be converted into an array of System.Object
but failing.
Possible workaround:
[TestCase(0=>12)]
Explanation of thinking: as it's expecting an array my suggestion is to attempt to convince the parser that 12
is the value of index 0
in an anonymous array.
When I tried to use NUnit I encountered the following error:
Source code:
If I take out
[TestCase(12)]
attribute (or replace it with[Test]
) it compiles ok.TestCaseAttribute
is defined like this: