Programming and other things
Thursday, December 18, 2008
Visual studio test environment and provide additional files
If you want, for example, to copy additional files to test location for some unit test, for example, some XML file, do the following:
Add test.xml to test project
Set "Copy to output directory" property of file to "Copy always"
For test method add [DeploymentItem("test.xml")] attribute.
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)