title: Testing ASP.NET MVC website
body: <p>I'm working on an MVC site with an image upload capability and I want to write a test that will upload an image.</p>
  
  <p>I made an image called TestImage.jpg and set Copy to Output to be "Copy if Newer". In my test I try to load that with the following code:</p>
  
  <pre><code>System.Drawing.Image testImage = System.Drawing.Image.FromFile(@"TestImage.jpg");
  </code></pre>
  
  <p>Shouldn't the "Copy to Output" copy it to the same directory where the test is running? If not, how can I find out where it was copied to? Best would be some kind of project root relative path so I can feel free to move the solution around without this breaking.</p>