title: NUnit test Bug? Expected <MyType> But was <MyType>
body: <pre><code>[Test]
  public void testMultiplication()
  {
      var five=new Dollar(5);
      Assert.AreEqual(new Dollar(10), five.times(2));
      Assert.AreEqual(new Dollar(15), five.times(3));
  }
  </code></pre>
  
  <p>Dollar class</p>
  
  <pre><code>public class Dollar
  {
      private int amount;
  
      public Dollar(int amount)
      {
          this.amount = amount;
      }
  
      public Dollar times(int multiplier)
      {
          return new Dollar(amount * multiplier);
      }
  
      public bool equals(Object theObject)
      {
         Dollar dollar = (Dollar) theObject;
  
         return amount == dollar.amount;
      }
  }
  </code></pre>
  
  <p>On line  Assert.AreEqual(new Dollar(10), five.times(2)); test fail with error:</p>
  
  <p>Expected: TDDbooks.Dollar</p>
  
  <p>But was:  TDDbooks.Dollar</p>