阅读背景:

单元测试操作过滤器 - 如何模拟ViewResult

来源:互联网 

I did a search on SO and looks like this question gets asked quite often. I have been able to get the mocks working and I'm also able to execute OnActionExecuted() without any issues. Here's my Unit Test. The commented lines are the ones that fail and I'm sure I'm not mocking the right type.I did a search on SO and looks like this questi




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

分享到: