title: NUNit - .xml resources and "The calling thread cannot access this object because a different thread owns it"
body: <p>In my C# project I use .xml files, but the problem occurs with the NUnit. If I try to add the files as a resources to the project, after running the unit tests there is an error in most of the them:
  "The calling thread cannot access this object because a different thread owns it".</p>
  
  <p>When I try to hardcode the relative path to the files, the program runs fine, but some of the tests fail, showing the error:
  "System.IO.DirectoryNotFoundException : Could not find a part of the path „C:\Users\Me\AppData\Local\JetBrains\Installations\ReSharperPlatformVs14_001\XmlFiles\MyFile.xml”"</p>
  
  <p>I'm using the latest NUnit 3.2.0.</p>