The unit test project in visual studio by default does not support external configuration file. Basically when you debug / run your tests the external configuration files you have used are not copied over to out directory.
The simplest work around to this is as follows:
- Add a test run configuration file at solution level
- Select deployment leaf in the test run configuration
- Add extra files that you want to be copied over to out folder in test run config
Now you should have the extra files being copied over to output directory making the test run successfully.
trivedimehulk@gmail.com
No comments:
Post a Comment