How to access project files from NUnit tests
Posted
by Daren Thomas
on Stack Overflow
See other posts from Stack Overflow
or by Daren Thomas
Published on 2010-05-27T13:16:11Z
Indexed on
2010/05/27
14:31 UTC
Read the original article
Hit count: 273
nunit
|resharper-test-runner
I have some Tests that I run with ReSharpers "Run All Tests from Solution" feature. One of the classes being tested has a dependency on a file in the same folder as the assembly containing it. This file is copied to the output directory via MSBuild (set "Copy To Output Directory" to "Copy always").
Problem: The tests are not being run from the normal assembly output directory, but instead some temporary location in my user profile.
Therefore, I don't really know where to look for the file - the test runner does not copy it there. Can I force it to?
© Stack Overflow or respective owner