views:

57

answers:

2

I've written an NUnit test project against an ASP.Net project. The code being tested cannot find the configuration values (in Web.config) when invoked from my test project. What is the right way to provide these configuration settings so my tests will run?

A: 

You can create an app.config file for your test project. Just put the configuration values you need in here.

Pete McKinney
+1  A: 

Take a look on NUnit's documentation about Configuration Files - it's pretty good explained how to handle your case.

Bolek Tekielski