title: Could not load file or assembly 'System.Web.Mvc In Unit Test
body: <p>I have unit tests and inside them I call a method that eventually calls this line:</p>
  
  <pre><code>DataSourceResult response = lstshiftGroup.ToDataSourceResult(request);
  </code></pre>
  
  <p>Which throws this exception:</p>
  
  <blockquote>
    <p>Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.</p>
  </blockquote>
  
  <p>In my test project I have reference of System.Web.Mvc, Version=4.0.0.0 and in my project I have the same assembly.</p>
  
  <p>What is wrong with my test?</p>