Trying to test equality

Jan 2, 2009 at 5:03 PM
ok,  I am new to DDD.  and I have a question.  I have been following along with the book coding along with it.  In my yest class, I have a test entity that implements the EntityBase.  I created a test in the test I created a Guid.and created 2 test etities with the same Guid.  I would think that with the base written the way it is that Assert.IsTrue(a == b) would pass but it doesn't.  Assert.IsTrue(a.Equals(b)) does pass though.  not really sure why all this is.
May 12, 2011 at 7:28 AM

Thanks for catching this...this is now fixed.