阅读背景:

是否应该覆盖等于在单元测试中断言对象相等性的方法?

来源:互联网 

Let's say we are testing the result of a method by asserting the equality of all the properties of the result object with properties of an expected result object. Should we implement equals method and use Assert.AreEqual(expectedResult, actualResult)... But equals may mean something different in production code. Let's say we are testing the result of a method




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: