nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #03512
[Bug 1194270] Re: Fluent Assert Is.EqualTo is acting like IsEquivalentTo
** Changed in: nunitv2
Status: New => Invalid
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1194270
Title:
Fluent Assert Is.EqualTo is acting like IsEquivalentTo
Status in NUnit V2 Test Framework:
Invalid
Bug description:
Is.EqualTo should be using reference equality, however when it is of a
list type, it seems to be testing reference equality of the objects
inside (this is what CollectionAssert is for, I thought).
var dictionary1 = new Dictionary<Type, Type>();
var dictionary2 = new Dictionary<Type, Type>();
Assert.That(dictionary1, Is.EqualTo(dictionary2)); //Expect fail, but passes
Assert.IsTrue(dictionary1 == dictionary2); //Expect fail and fails.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1194270/+subscriptions
References