← Back to team overview

nunit-core team mailing list archive

[Bug 676560] Re: Assert.AreEqual does not support IEquatable<T>

 

I have committed a first naive implementation on this branch: https://code.launchpad.net/~simone.busoli/nunitv2/iequatable-67650
My main concerns are related to performance as it requires reflection to work, but it's also true that it sits right before the last fallback which uses object.Equals and the equality has likely been handled before then.

Thoughts?

-- 
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/676560

Title:
  Assert.AreEqual does not support IEquatable<T>

Status in NUnit Test Framework:
  Triaged
Status in NUnit V2 Test Framework:
  Triaged

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunit-3.0/+bug/676560/+subscriptions


References