views:

94

answers:

1

Is there anyway to set an execution path for the tested DLL so it can find resource folders when MbUnit copy files into a temporary folder.

Before you tell me:

  • No I don't want to implement Dependency Injection
  • I've tried putting these extra files as as content and set behaviour to copy, still doesn't work
A: 

If you are running these tests from the command-line, NAnt or MSBuild you can specify the application base directory and working directory arguments.

There are similar mechanisms available using Gallio Icarus or the ReSharper integration.