title: MVC - forcing building and compiling of razor view markup
body: <p>I'm not looking for much, but I want to guarantee as much as possible any re-factoring of my code has no side-effects on my front-end.</p>
  
  <p>It galls me to find that I have had to re-factor e.g. Action links not to use strings as parameters (something i find horrendous), to use enums or constants for the actions and controller names.</p>
  
  <p>e.g. <code>@(Url.UserLink(UserActions.xxx))</code></p>
  
  <p>However i find it strange that I can still enter gobbledygook for the parameter (i.e. a non-existent enum item), and the project will build. Browsing the page I get a compilation time error. However in the unit test calling the controller passes.</p>
  
  <p>Can anyone suggest any work-arounds, somehow using RenderView or something from the test? At least the code should not compile!?</p>
  
  <p>I haven't explored the front-end testers such as <em>watIn</em> or <em>Selenium</em>, but I guess these will be coming...</p>