阅读背景:

当控制器被单元测试实例化时,模型状态为空

来源:互联网 

I'm trying to unit test my controller which contains a check for ModelState.IsValid but for some reason whatever I do I always end up with an null exception everywhere I try to access the ModelState (both in unit test and controller function). I'm trying to unit test my controller which con




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

分享到: