If I'm just testing a dll, what is the config file?

N

Nevyn Twyll

I'm using NUnit to test a Class Library project (in a dll) that will
eventually be used from a web project.
When writing my test, everything is great, except I want to have my database
connection settings in my web.config file, and use
System.Configuration.ConfigurationSettings.AppSettings["mytag"].

Inside the web app, it works great, drawing from the web.config.
But, clearly, just inside the dll, there's no web.config to draw from -
so...how can I set that up?

- Nevyn
 
N

Nevyn Twyll

I tried putting that file for the test assembly, the assembly it's testing,
etc. in their directories, and no go.
Tried web.config, too, just for fun.

- Pol
 

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