How can i unit test the view of an ASP MVC application?
I have tried the mvc contrib test helper...
_controller.Index().AssertViewRendered();
but this doesn't actually test the view.
for example i can happily insert some bogus code in the view, and get the dreaded yellow screen of death, without my unit test ever knowing about it.
Is there any estabilished method of doing this? Do i need a mock out the view engine? Does mvccontrib cater to this?
I would have thought this would be a very common requirement, but i can't find much about it!
Thanks
EDIT What i'm really after is compile time checking, to ensure that model changes don't impact the view.
this question contained the instructions to enable build time view compilation which is sufficient for me for now. http://stackoverflow.com/questions/383192/compile-views-in-asp-net-mvc