- 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.
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:
Labels:
.Net,
Attributes,
Testing
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment