How would I determine the solution path from within my test code?
I'm trying to write tests for a plugin architecture. I have some fake classes that implement my plugin interface in a separate project within my solution. After these build, the dll is copied into a 'plugins' folder using a post-build event:
copy "$(TargetPath)" "$(SolutionDir)TestPlugins"
My test code looks for plugins in that location and loads plugin types into a collection for later use.
At the moment, I'm having to hard-code the 'plugins' folder path in my test, which is nasty.
Oh, and I'm using Visual Studio's built-in test projects (rather than NUnit), in case that makes a difference.