开发者

Stubbing out methods that explicitly implement an interface using Rhino Mocks

开发者 https://www.devze.com 2022-12-29 00:16 出处:网络
How can I stub out methods that explicitly implement an interface using Rhino Mocks? As I understand it, Rhino Mocks requires stubbed out methods to be virtual, and explicitly implemented interface m

How can I stub out methods that explicitly implement an interface using Rhino Mocks?

As I understand it, Rhino Mocks requires stubbed out methods to be virtual, and explicitly implemented interface members a开发者_开发问答re not virtual.


Not currently. In fact, the feature of intercepting explicitly implemented interface members just got fixed yesterday in the Dynamic Proxy code (Rhino Mocks uses Dynamic Proxy under-the-covers to intercept method calls):

http://support.castleproject.org/projects/DYNPROXY/issues/view/DYNPROXY-ISSUE-107

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号