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

前端 未结 2 1228
感动是毒
感动是毒 2020-12-03 19:48

I\'m using Microsoft Visual Studio 2005 with Enterprise Library 3.1.

I have a data access layer which is a separate visual studio class library project. I wrote unit

相关标签:
2条回答
  • 2020-12-03 19:55

    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) enter image description here

    0 讨论(0)
  • 2020-12-03 19:59

    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.

    0 讨论(0)
提交回复
热议问题