I have many integration tests that read expected results from files. My tests access these files in relative ways. Relative paths are one level of depth, great for x86 vs Any CPU. For example, when my tests are run under x86, they need to read the following file "../../TestResults/MyTest.csv", but in the section "Any processor" they need to access "../TestResults/MyTest.csv"
So far, I have the following constant in every testing:
private const string platformDependentPrefix = "";
If I run my tests for x86, I need to manually change "to" .. / "in each test device.
Is there any way to automate it?
source share