nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00191
Re: [Question #87575]: using TestCase attribute with arrays doesn't produce helpful output
Question #87575 on NUnit Framework changed:
https://answers.launchpad.net/nunit-3.0/+question/87575
Status: Open => Answered
Charlie Poole proposed the following answer:
OK, I thought about it some more and I understand the problem now. I
suggest you just provide a separate TestName on the TestCaseAttribute...
for example...
[TestCase(new double[](2,1,2.1), TestName="Case1")]
or even
[TestCase(new double[](2,1,2.1), TestName="2,1,2.1")]
An alternative might be to use a params array as an argument, but I
strongly suspect that NUnit won't handle it.
--
You received this question notification because you are a member of
NUnit Core Developers, which is an answer contact for NUnit Framework.