The problem with NUnit and app.config

前端 未结 9 834
孤独总比滥情好
孤独总比滥情好 2020-12-29 19:48

When i run a simple test on connection to DB check i receive an error in NUnit:

[Test]
public void TestConn()
{
    string  connectionString = Configuration         


        
9条回答
  •  独厮守ぢ
    2020-12-29 20:24

    See my answer nunit and configs You need to tell nunit what the name of the config file is. it looks for namespace.config by default it seams

提交回复
热议问题