I have a function which opens up the help file for the app. The function takes 3 arguments :
ShowHelp(appPath, 1, @"heelphelp.doc")
- The first argument is the start path.
- The second argument is the no of levels up the start path.
- The third argument is the path of the help file after going up n levels from the start path.
To test this I created a Resources folder in my test project, added a doc into this folder and supplied the below:
controller.ShowHelp(Application.ExecutablePath, 1, @"Resourcesh.doc");
However when I run this thru test driven.net , my executable path is coming back as :
"C:Program FilesTestDriven.NET 2.0ProcessInvocation.exe"
- How do I supply the path of my Test Project in the test?
- Is there any easier way to test this method?
Thanks!