I am writing some unit tests and I need to be able to access an external file. I assumed I could just place the file in my solution, mark it to be copied to the output directory, and then access it via a relative path. Unfortunately, it seems that unit tests are run in a strange directory.
So, instead of running from:
it runs from:
My question is, how do I set up access to external files I need to utilize from my unit tests?
Note, the files aren't text files. They are a proprietary flat-file database format (created from another application), so preparing these files "on the fly" during the test run is not feasible.