unit testing - Using content from the project in tests -


i working visual studio 2010 , it's integrated testing functionality.
have xml file in project set copy output directory. can access file fine when compile , run project. doesn't exist when attempt access within testmethod.

it looks test run working directory set "out" directory created within testresults directory. can set breakpoint before use file. if copy file "out" directory , continue running test accesses file properly. not how want automated tests function.

is possible tell vs copy build directory working directory?

i found of solution. though i'm not happy it.

under test->edit test settings edit current settings. under deployment tab, check enable deployment checkbox. in additional files , directories deploy add bin\debug directory (looks src\localmodels.test\bin\debug)

i suppose add each file need , bit faster. seems bit ridiculous.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -