Public bug reported: 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. ** Affects: nunitv2 Importance: Undecided Status: New -- 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: New 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 _______________________________________________ Mailing list: https://launchpad.net/~nunit-core Post to : nunit-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~nunit-core More help : https://help.launchpad.net/ListHelp