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,856
  • 12
  • 57
  • 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
  • 100,561
  • 17
  • 199
  • 269