title: How to unit test code that uses HostingEnvironment.MapPath
body: <p>I have some code that uses <code>HostingEnvironment.MapPath</code> which I would like to unit test. </p>
  
  <p>How can I setup <code>HostingEnvironment</code> so that it returns a path and not <code>null</code> in my unit test (mstest) project?</p>