阅读背景:

单元测试以确定该操作返回正确的视图。

来源:互联网 

How can you test that an action method you have like so will return the correct view because Viewname is an empty string? Should I even bother testing this? I'm not sure how many unit tests to do, I'm thinking you could create a lot of unit tests!How can you test that an action method you have




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

分享到: