阅读背景:

模拟对象 - 将所有方法声明为虚拟或使用接口?

来源:互联网 

In .net, unlike in Java, methods are not virtual by default. In order to use most mock object frameworks, you either have to mark the methods that you want to use on your mock as virtual on the `real' object, or you have to have an interface that you can mock that the class under test will accept in lieu of the implementation.In .net, unlike in Java, methods are not virtua




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

分享到: