What's the difference between Assert.AreNotEqual and Assert.AreNotSame?

前端 未结 6 2096
情书的邮戳
情书的邮戳 2020-12-24 10:33

In C#, what\'s the difference between

Assert.AreNotEqual

and

Assert.AreNotSame
6条回答
  •  有刺的猬
    2020-12-24 11:05

    AreNotSame does reference comparison, whereas AreNotEqual does an equality comparison.

提交回复
热议问题