Problem in reading connection string from App.Config when using NUnit 2.5.2

萝らか妹 提交于 2019-11-27 15:18:45

You need to tell nunit the config file name. in nunit gui go to project > edit and then change the configuration file name.

It seems nunit looks for namespace.config by default. (eg. tb.specs.config in my case)

The issue is that NUnit look for config files in the root directory (the design-time location of config files). However, .net moves and renames the files into the bin folder. You can change the nunit settings to look in the bin when executing tests.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!