nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00181
[Question #87575]: using TestCase attribute with arrays doesn't produce helpful output
New question #87575 on NUnit Framework:
https://answers.launchpad.net/nunit-3.0/+question/87575
If i have the following:
[Test]
[TestCase(new[]{2,1,2.1})]
public void WithArray(params double [] prices)
{
}
It would be nice if NUnit could loop through the array and output it's contents and produce something like the following:
TestCase 'NUnitBugs.Tests.SampleTests.WithArray(System.Double[]{2,1,2.1})'
failed: TearDown : NUnit.Framework.AssertionException :
Expected: 0.1m
But was: 1.1m
instead of:
TestCase 'NUnitBugs.Tests.SampleTests.WithArray(System.Double[])'
failed: TearDown : NUnit.Framework.AssertionException :
Expected: 0.1m
But was: 1.1m
thanks
cliff
--
You received this question notification because you are a member of
NUnit Core Developers, which is an answer contact for NUnit Framework.