title: NUnit Assert.Equals What am I missing?
body: <p>Assert.Equals() never calls </p>
  
  <pre><code>Equals()
  operator ==
  operator !=
  </code></pre>
  
  <p>Am I missing something? I have implemented IEquatable but still the methods are never being called while using nunit.</p>
  
  <pre><code>if (objectA != objectB) Assert.Fail(); //doesnt fail
  if (!objectA.Equals(objectB)) Assert.Fail(); //doesnt fail
  Assert.AreEqual(objectA, objectB); //fail
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I should have been clearer.</p>
  
  <pre><code>public class Entity 
  {
    public int ID { get; set; }
  }
  
  var objectA = new Entity() { ID = 1 };
  var objectB = new Entity() { ID = 1 };
  </code></pre>
  
  <p>two separate instances both with the same ID I have implemented all the relevant methods to make this work for ==, != and Equals but nunit AreSame and AreEqual still fails to call those methods.</p>