nunit and config files.

P

Peter Rilling

When running my unit tests for our web project, I am having a difficult time
getting values from the config file.

When running from the web server, the config file is able to be read from
the web.config. When I run from nUnit, I get a null. I added our config
settings to the nunit-gui.exe.config, but no luck.

Am I missing something.
 
N

N.K

I beleive,nunit loads each of your dll's in a seperate appdomain and
not with in default appdomain.

As .config files applies in appdomain level , this doesnt works.


Cheers
Nirmal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top