Error!
Success!

Difference between AreEqual and AreSame

0
kicks

Difference between AreEqual and AreSame  (Unpublished)

The difference between the two assertions are quite simple. Assert.AreSame checks that they are the exact same object, memory reference and all (in the case of .NET using ReferenceEquals). Assert.AreEqual checks that objectOne.Equals(objectTwo) will return true.


Kicked By:
Drop Kicked By: