This project is read-only.

How can I test if the view does not return 500 error

Jul 8, 2013 at 6:56 PM
An error in the razor file is generating 500 error Object reference not set to an instance of an object.

How can I test this error?

PS: My views are pre compiled via RazorGenerator
Jul 15, 2013 at 9:31 PM
We only test that the controller returns an ActionResult with the correct model and view name set.

To test that your view actually renders you will need to write an integration test. David Ebbo may be able to give you some tips on how to integration test your views with RazorGenerator if you post a question over on their CodePlex site.