阅读背景:

使用Moq模拟一个类时,我如何才能使用CallBase来获取特定的方法?

来源:互联网 

I really appreciate Moq's Loose mocking behaviour that returns default values when no expectations are set. It's convenient and saves me code, and it also acts as a safety measure: dependencies won't get unintentionally called during the unit test (as long as they are virtual). mocking behavio




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

分享到: