nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00179
[Bug 465416] [NEW] using TestCase attribute with arrays doesn't produce helpful output
Public bug reported:
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
** Affects: nunit-3.0
Importance: Undecided
Status: New
--
using TestCase attribute with arrays doesn't produce helpful output
https://bugs.launchpad.net/bugs/465416
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
Status in NUnit Test Framework: New
Bug description:
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
Follow ups
References