← Back to team overview

nunit-core team mailing list archive

[Bug 631809] Re: Misleading doc of CollectionAssert.AreEqual() and .AreEquivalent()

 

** Changed in: nunitv2
   Importance: Undecided => Low

-- 
Misleading doc of CollectionAssert.AreEqual() and .AreEquivalent()
https://bugs.launchpad.net/bugs/631809
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.

Status in NUnit V2 Test Framework: New

Bug description:
http://www.nunit.org/index.php?p=collectionAssert&r=2.5.7 states (my uppercase for highlighting):

"The AreEqual overloads succeed if the two collections contain the SAME objects, in the same order. AreEquivalent tests whether the collections contain the SAME objects, without regard to order."

>From my understanding, something like the following note should be appended:

"Here, "same objects" does not mean reference equality but equality regarding to the default equality comparison."





References