阅读背景:

如何设置模拟对象以在第一次调用时返回一个结果,为其余调用返回Exception

来源:互联网 

I'm using Moq library. I'm mocking up an instance that does all regular CRUD functionality. I would like to set it up in a way to allow only one Delete(x) call over some object and all consecutive calls to Delete(x) of the same object should return an Exception.I'm using Moq library. I'm mocking up an instan




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

分享到: