title: Get values from the web.config section in an app.config file?
body: <p>I'm trying to unit test values that will eventually wind up in a web.config file. In my test project, I created an app.config file with a web.config section to hold the settings. In a normal situation, I would call System.Configuration.ConfigurationSettings.AppSettings, but in this case, that doesn't work. I saw <a href="https://stackoverflow.com/questions/76781/how-do-i-tdd-a-custom-membership-provider-and-custom-membership-user">this question</a>, which is very similar, but doesn't address how to get the NameValueCollection out of the config file. Here is an example of the config file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
      &lt;system.web&gt;
        &lt;membership defaultProvider="CustomMembershipProvider"&gt;
          &lt;providers&gt;
            &lt;clear/&gt;
            &lt;add
              name="CustomMembershipProvider"
              applicationName="SettlementInfo"
              enablePasswordRetrieval="false"
              enablePasswordReset="false"
              requiresQuestionAndAnswer="true"
              writeExceptionsToEventLog="true" /&gt;
          &lt;/providers&gt;
        &lt;/membership&gt;
      &lt;/system.web&gt;    
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Has anyone dealt with this before?</p>