nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01886
[Bug 794115] Re: HashSet incorrectly reported
** Changed in: nunitv2
Status: New => In Progress
** Changed in: nunitv2
Importance: Undecided => Low
** Changed in: nunitv2
Milestone: None => 2.6.0
** Changed in: nunitv2
Assignee: (unassigned) => Charlie Poole (charlie.poole)
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/794115
Title:
HashSet incorrectly reported
Status in NUnit V2 Test Framework:
In Progress
Bug description:
Sample code
-----------------
[Test]
public void SomeTest()
{
var actual = new HashSet<string>(new[] {"foo", "bar"});
Assert.That(actual, Is.EquivalentTo(new[] { "fo__", "bar" }));
}
Reported as
-----------------
Expected: equivalent to < "fo__", "bar" >
But was: <System.Collections.Generic.HashSet`1[System.String]>
Expected being reported as:
---------------------------------------
Expected: equivalent to < "fo__", "bar" >
But was: < "foo", "bar" >
Environment
-----------------
NUnit version 2.5.9.10348
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/794115/+subscriptions
References