MVC Preview 5 - Rendering A View To String For Testing
问题 I was reading a post by Brad Wilson (http://bradwilson.typepad.com/blog/2008/08/partial-renderi.html) on the new ViewEngine changes to MVC Preview 5 and thought that it would be great to be able to render a view to string for use in tests. I get the impression from the article that it may be possible to achieve this but cannot figure out how. I believe this would enable us to do away with some of our WatIn tests (which are slow and unreliable) as it would allow us to check that the View has