title: Getting the desired / correct assembly path while unit testing with NUnit
body: <p>I just started experimenting moq for unit testing my modules.</p>
  
  <p>Actually, the class for which I have to write an unit test uses</p>
  
  <p><code>Assembly.GetExecutingAssembly().Location</code> internally to determine a path.</p>
  
  <p>But, this doesn't work while writing unit tests because, the path of the executing assembly is different (the path of the unit testing assembly is taken)</p>
  
  <p><code>AppData\\Local\\Temp\\3ylnx32t.ukg\\TestApplication.Test\\assembly\\dl3\\aeb938e6\\f3664631_d982ce01</code>.</p>
  
  <p>I tried, disabling shadow copying.</p>
  
  <pre><code>AppDomainSetup appDomain= new AppDomainSetup{ShadowCopyFiles = "false",};
  appDomain.ShadowCopyFiles=false.ToString();
  </code></pre>
  
  <p>still, it doesn't work!</p>
  
  <p>Any suggestions are appreciated. Thanks in advance.</p>