Assert.AreEqual(a, b) same as Assert.IsTrue(Object.Equals(a, b))
Assert.AreSame(a, b) same as Assert.IsTrue(Object.ReferenceEquals(a, b))
(the only reason I knew, I just thought about it a few hours ago because I needed to do Assert.IsTrue(Object.ReferenceEquals(a,b)) and thought: "I wonder if there is a better way to do this" )
Scott Chamberlain Jun 11 '14 at 21:21 2014-06-11 21:21
source share