title: Can a unit test project load the target application's app.config file?
body: <p>I am unit testing a .NET application (.exe) that uses an app.config file to load configuration properties.  The unit test application itself does not have an app.config file.  </p>
  
  <p>When I try to unit test a method that utilizes any of the configuration properties, they return <em>null</em>.  I'm assuming this is because the unit test application is not going to load in the target application's app.config.</p>
  
  <p>Is there a way to override this or do I have to write a script to copy the contents of the target app.config to a local app.config?  </p>
  
  <p><a href="https://stackoverflow.com/questions/168931/unit-testing-the-appconfig-file-with-nunit">This</a> post kind-of asks this question but the author is really looking at it from a different angle than I am.</p>
  
  <p><strong>EDIT:</strong> I should mention that I'm using VS08 Team System for my unit tests.</p>