Hello,
I just started using NUnit to write test cases for my asp.net web application project.
Some of the code written to access database values fetches the ConnectionString from a "section" defined under "configSections" of web.config file.
This works fine during the normal execution of the project on a web browser. But when I access the same method through the test case, WebConfigurationManager.GetSection() always return null.
Initially I was also not able to access AppSettings section of web.config but it got solved when I copied the web.config file into the BIN folder. But still not able to fetch the "section" inside "ConfigSection".
Kindly suggest.