开发者

How to do unit test for view in ASP.NET MVC

开发者 https://www.devze.com 2023-04-07 11:51 出处:网络
Is there any way that can I write a unit test for Views in my ASP.NET MVC application? I 开发者_C百科need to validate the button names, title, etc. stuff using such tests.We\'ve used Coded-UI Tests f

Is there any way that can I write a unit test for Views in my ASP.NET MVC application?

I 开发者_C百科need to validate the button names, title, etc. stuff using such tests.


We've used Coded-UI Tests for ASP.NET web applications. If you have the appropriate Visual Studio version, this may be on option. Ideally for MVC you can also write a lot of these tests against the controllers, which is baked in, but since you asked about Views I'm sharing the Coded UI link

0

精彩评论

暂无评论...
验证码 换一张
取 消