How to Enable Deployment
Deployment is the process of copying test assemblies, dependencies, and any other specified files to an "Out Directory." By default, the AppBase is the "Out Directory." If you try to use a Project/Solution that has not had the necessary data copied over, you will receive a similar error to below (this is a common reason for an error starting with System.IO.FileNotFoundException).
By enabling Deployment, you are telling Visual Studio to copy all files for the project to the Out Directory. When it is disabled, everything runs out of the root folder for the project/solution.
1. Open the project.
2. Double-click the Test Settings file in use by the Project/Solution in the Solution Explorer.
3. Click Deployment in the left column.
4. Check Enable Deployment.
5. Click Apply.
It will likely be necessary to Rebuild your project before running the test again.