title: Azure Devops Pipeline Test step fails - incorrect path to data files
body: <p>I have a Repo containing three solutions.  Each solution has multiple projects, many of which are shared (including test projects).</p>
  
  <p>I have a build pipeline along the following lines</p>
  
  <ul>
  <li>Retrieve NuGet packages</li>
  <li>Build Solution 1</li>
  <li>Build Solution 2</li>
  <li>Build Solution 3</li>
  <li>Execute all tests</li>
  </ul>
  
  <p>The step to execute all tests is as follows:</p>
  
  <pre><code>- task: VSTest@2
    displayName: 'Test'
    inputs:
      testSelector: 'testAssemblies'
      testAssemblyVer2: |
        **\*test*.dll
        !**\*TestAdapter.dll
        !**\obj\**
      searchFolder: '$(System.DefaultWorkingDirectory)'
  </code></pre>
  
  <p>The vast majority of tests run perfectly.  However, I get the odd and rather confusing error message for some tests:</p>
  
  <blockquote>
    <p>[error]SetUp failed for test fixture TestProjectOne.A.B.GetSomethingTests</p>
    
    <p>[error]SetUp : System.IO.DirectoryNotFoundException : Could not find a part of the path
    'd:\a\1\s\Projects\TestProjectTwo\A\B\TestData\SomeFile.txt'.</p>
  </blockquote>
  
  <p>So it's currently processing <strong>TestProjectOne</strong> but then saying it can't find a file under a path for <strong>TestProjectTwo</strong>.</p>
  
  <p>The code within the test is as follows:</p>
  
  <pre><code>private const string RelativePath = @"..\..\A\B\TestData\";
  ...
  var x = File.ReadAllText(RelativePath + "SomeFile.txt")
  </code></pre>
  
  <p>Needless to say, this works perfectly using Visual Studio 2019 using both the Visual Studio and ReSharper test runner.</p>
  
  <p>Why would an Azure DevOps pipeline suffer this issue?</p>