.NET Moles Stub Fallthrough Behaviour

前端 未结 1 837
伪装坚强ぢ
伪装坚强ぢ 2021-01-21 23:12

Is it possible in the .NET Moles framework to use the Fallthrough Behavior in Stub Types as we do with Mole Types?

I can override the default behavior of a Mole instance

相关标签:
1条回答
  • 2021-01-21 23:56

    It is explained in the manual at "Partial Stubs". What you want is CallBase, which is a property of Stubs of Moles :

    var stub = new SMyInstance() {CallBase = true};  
    

    or

    stub.CallBase = true;
    

    Hope this help.

    0 讨论(0)
提交回复
热议问题