4

We have recently migrated tests from NUnit to MSTest and I am struggling to get previously passing tests runnning. From what I can deduce MSTest cannot detect the NLog configuration. I have my Nlog configuration in my App.config which didn't cauise an issue with NUnit.

Has anyone any ideas?

Dean
  • 5,896
  • 12
  • 58
  • 95

1 Answers1

5

Change the Copy to Output Directory setting for your App.config to Copy Always or Copy if Newer. More on this here.

Example of a Unit Test Project

StuartLC
  • 104,537
  • 17
  • 209
  • 285