I am working on Unit tests that test a method in an application that produces a file. So I decided to put an expected file in a directory called Resource/Empower/. The resource folder is at the same level as the bin folder of the Unit Test project.
Now what I want to do is get the path of the file name. I cannot hard code because I don't know exactly about the drives on the build server.
So how do I get the relative path of the file. Lets say if the file Name is expectedMasterFileSetUp.txt
?
I want the path Resource/Empower/ExpectedMasterFileSetUp.txt