title: NUnit - assembly that reads and writes file
body: <p>I am unit testing an assembly that uses  File.WriteAllLines() and File.ReadAllText() to read and write persistent data.  When I run the unit test with the NUnit Gui the test fails with an unauthorizedAccessException.</p>
  
  <p>The path that the file is attempting to read and write is being affected of course by the location of program execution.  Depending on if I run NUnit under Visual Studio or directly from the Nunit /bin folder, this is where the attempted read and write operation is taking place.</p>
  
  <p>I have tried to run NUnit as administrator and have copied all of the assemblies directly to the NUnit /bin folder and the test still fails.</p>
  
  <p>I do not want to directly set a path in the assembly.</p>
  
  <p>Any ideas on how to resolve this issue?</p>