0
votes

I'm testing a class library with a separate Nunit test project, which is another class library. The unit tests are run by resharper, but the problem is, the class library is expecting to get configuration values from app.config.

When NUnit project is a class library, then there is no place to put app.config so that the class library can access the values in it.

If the NUnit project was an executable, it'd host the app.config, but that is not what is suggested according to questions and answers on SO

What should I do?

1

1 Answers

0
votes

I don't understand what you are talking about. You just add app.config to your test project. It works. I do it (when I need values from config) with and without resharper.

This may also help you - http://nunit.net/blogs/?p=9