title: How to refer to test files from Xunit tests in Visual Studio?
body: <p>We’re using Xunit for testing. We’re running our tests via the built-in Visual Studio 2013 Test Runner, using the Xunit plugin.</p>
  
  <p>The issue is that some of the tests need to refer to <em>files on the filesystem</em>. It seems that Xunit (or the VS Test Runner—not sure which), copies the assembles, but not any supporting files in the bin directory, to another directory before executing the tests, hence our test files are not found. [The MS Testing framework specifies attributes for listing files to be copied, but Xunit does not.]</p>
  
  <p>How to <em>either</em> disable this copying behaviour, or else programmatically determine the original <code>bin/</code> directory location to fetch the files?</p>
  
  <p>It seems that most proposed solutions (including on the Xunit bug-tracker site) suggest storing the files as embedded resources instead of ‘copy always’ files. However, this is not always practical, for example: testing file manipulation code, and (in one case) code which wants a Sqlite database file.</p>