Rigged up unit testing support with RazorGenerator. Note that binding redirects had to be added in the app.config file of the unit test project per https://razorgenerator.codeplex.com/discussions/447012