When runnning unit tests What directory am I in?
When I try running them in VSTS I get an error - File not found.
Thanks,
Tom
Thanks,
Tom
They are deloyeed to a deployment directory that is off the solution directory. Deployment cannot be turned off.
To add files as deployment items either edit the Run configuration, or add a [DeploymentItem] attribute to the relevant test.
thanks for the post that fixed my problem. However i have a question?
In my test project i am testing a dll that has a xyz.txt file set as content and with "Copy to Output Directory" = "Always copy" This moves the file to the output directory but not to the test run directory, which I thought it should.
Why does the test output directory ignore the project settings ?
thanks
Dan