Asp.Net MVC How to test that the view rendered
Posted
by Miau
on Stack Overflow
See other posts from Stack Overflow
or by Miau
Published on 2010-05-31T12:12:01Z
Indexed on
2010/05/31
15:53 UTC
Read the original article
Hit count: 182
asp.net-mvc
|unit-testing
HI there
I was wondering if there is a better way of testing that a view has rendered in MVC.
I was thinking perhaps I should render the view to a string but perhaps there are simpler methods?
Basically what I want to know if that the view for a given action has rendered without errors I m already testing the view model but I want to see that rendering the view giving a correct ViewData.Model works
© Stack Overflow or respective owner