I have a lot of integration tests which read expected results from files. My tests access those files by relative paths. Relative paths are one level of depth different for x86 vs Any CPU. For example, when my tests run under x86, they need to read the following file "../../TestResults/MyTest.csv", but under Any CPU they need to access "../TestResults/MyTest.csv"
So far I have the following constant in every test fixture:
private const string platformDependentPrefix = "";
If I run my tests for x86, I need to manually change "" to "../" in every test fixture.
Is there a way to automate it?