Assert.AreEqual does not support IEquatable<T>
Bug #676560 reported by
Lionel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Fix Released
|
High
|
Charlie Poole | ||
NUnit V2 |
Fix Released
|
Medium
|
Simone Busoli |
Bug Description
Assert.AreEqual does not support IEquatable<T>, ie Assert.AreEqual always returns false when comparing two objects for which IEquatable<T>.Equal would return true.
Changed in nunitv2: | |
status: | New → Confirmed |
Changed in nunitv2: | |
milestone: | none → 2.6.0 |
Changed in nunitv2: | |
assignee: | nobody → Simone Busoli (simone.busoli) |
Changed in nunitv2: | |
status: | Triaged → In Progress |
Changed in nunitv2: | |
status: | In Progress → Fix Committed |
Changed in nunit-3.0: | |
milestone: | none → 2.9.6 |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
Changed in nunit-3.0: | |
assignee: | nobody → Charlie Poole (charlie.poole) |
Changed in nunit-3.0: | |
status: | Triaged → Fix Committed |
Changed in nunit-3.0: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Implementing this requires some big changes in the way comparison is done, since we need to test for a generic interface. NUnitEqualityCo mparer is not generic in the current release and would have to be changed to be generic in order to implement this request. This is a good idea but there is a question of what release to do it in.