title: FileNotFoundException after unit test start. Trying to search under AppData
body: <p>There is <code>[SetUp]</code> part where some file is loaded for later tests.</p>
  
  <p>It should be loaded with:</p>
  
  <pre><code>private string GiveFilePath()
  {
     string folder;
     string assemblyPath;
  
     assemblyPath = Assembly.GetExecutingAssembly().Location;
     folder = new FileInfo(assemblyPath ).DirectoryName;
     return folder + @"\" + FileNameAsConst;
  }
  </code></pre>
  
  <p>But I get </p>
  
  <p><code>System.IO.FileNotFoundException</code> in <code>C:\Users\username\AppData\Local\Temp\...</code></p>
  
  <p>cause its trying to load this file from <code>AppData</code> and not from the projects folder.</p>
  
  <p>There is the similiar <a href="https://stackoverflow.com/questions/8309411/what-is-cache-appdata-local-assembly-dl3">question</a> asked already. And the answer, that the author of the question have found himself is to set <code>ShadowCopyFiles</code> property to <code>true</code>.</p>
  
  <p>But there is no any <code>ShadowCopyFiles</code> in code or in config files.</p>
  
  <p>Do you have any ideas?</p>
  
  <p><strong><em>Update:</em></strong></p>
  
  <pre><code>[SetUp]
  public void SetUp()
  {       
      this.facade = new MyFacade();
  }
  
  [Test]
  public void InstanceIsNotNull()
  {
     Assert.IsNotNull(facade);
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>public MyFacade()
  {
     FileStream fileStrem = new FileStream(GiveFilePath(), FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
     ...
  }
  </code></pre>