Difference between AreEqual and AreSame(blog.robustsoftware.co.uk)
submitted by
Mintman(280) 2 years, 9 months ago
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.
|category: Unit Testing
|Views: 15
tags:
Testing another
Everyones tags:
Your Tags: