IT:AD:NConfig:HowTo:Get it to find the app.config when running under MSTest
Summary
NConfig relies on finding override files where expected
THe default location that Projects:XActLib's IAppHostSettingsService searches is: Config\MachineSpecificSettings\{machineName}app.config
Which – if you've made sure to mark the override app.config with Content and Copy if Newer – works fine under IT:AD:NUnit.
But when running under MSTest, the output bin is going to be something akin to:
C:\Users\SkyS\AppData\Local\Temp\TestResults\skys_SKYSW8LT 2014-03-02 19_15_21\Out\Config\MachineSpecificSettings\app.config
and because MSTest by default does not honour 'Content/Copy if Newer', there will be custom app.config file there.
Process
I gave up and switched to using IT:AD:NUnit but then came across the following instructions…which may be the right ticket: