title: How to get Directory while running unit test
body: <p>Hi when running my unit test I'm wanting to get the directory my project is running in to retrieve a file.</p>
  
  <p>Say I have a Test project named MyProject. Test I run:</p>
  
  <pre><code>AppDomain.CurrentDomain.SetupInformation.ApplicationBase
  </code></pre>
  
  <p>and I receive <code>"C:\\Source\\MyProject.Test\\bin\\Debug"</code>.</p>
  
  <p>This is close to what I'm after. I don't want the <code>bin\\Debug</code> part.</p>
  
  <p>Anyone know how instead I could get <code>"C:\\Source\\MyProject.Test\\"</code>?</p>