Cannot Use ConfigurationManager inside Unit Test Project

后端 未结 5 1769
孤独总比滥情好
孤独总比滥情好 2021-01-07 19:20

I\'m trying to write a unit test for my project, but it will not let me use the Configuration Manager. Right now my project is set up like

ASP.Net application (all a

5条回答
  •  一生所求
    2021-01-07 20:16

    It is related to the /noisolation parameter in the command line of mstest.exe. Omitting the /noisolation parameter, it works.

提交回复
热议问题