title: Using the connectionstring in an nunit test
body: <p>we use the nunit.exe application to run our (integration)test</p>
  
  <p>Now i experience the problem that the connectionstring is not picked up from the app.config from the dll where the testcode is in.</p>
  
  <p>That sounds logical because the nunit.exe is the starting app and not the test dll (it used to work when i started the tests from the visual studio testframework by the way), but should i put the connectionstrings in the nunit.exe.config?</p>
  
  <p>I tried setting them in the testcode (works for the appsettings : <code>ConfigurationManager.AppSettings.Set("DownloadDirectory", mDir);)</code> like this:
  <code>ConfigurationManager.ConnectionStrings.Add(conset);</code> (where <code>conset</code> is a <code>ConnectionStringSettings</code> object), but then i get the error that the connectionstrings section is readonly.</p>
  
  <p>What should i do to use the connectionstrings in my test?</p>
  
  <p>EDIT:
  we use the entity framework so we can't put the connectionstring in the appsettings because it reads from the  section directly, i couldn't find a way to work around this behaviour.</p>