开发者

NUnit: configuration settings cannot be found

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 m开发者_开发知识库y tests will run?


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜