title: Unit test: Could not find data file if it is inside a folder
body: <p>I am creating data driven unit testing method which uses <code>xml</code> to pass data. I have followed examples which are given in SO and MS website and created a method accordingly.  </p>
  
  <p>I have created one <code>xml</code> file inside a directory <code>data</code> in my project. So the path is <code>/data/d.xml</code>. I have set <code>Copy to Output Directory</code> property as <code>Copy always</code>.  The problem I am facing here is, the file is being copied to the directory <code>Debug\data\d.xml</code>, but, my unit test method is trying to find it in <code>Debug\d.xml</code>.  </p>
  
  <p>How to make my unit test method to find that file in <code>Debug\data\d.xml</code>  or  How to make my data file moved directly under <code>Debug</code> folder without moving it out of the <code>data</code> directory?<br>
  My unit test method is as follows,</p>
  
  <pre><code>    [TestMethod]
      [DeploymentItem("d.xml")]
      [DataSource("Microsoft.VisualStudio.TestTools.DataSource.XML", "/data/d.xml", "model", DataAccessMethod.Sequential)]
      public void GetCPCModelTest()
      {
          //some code
          Assert.IsTrue(model != null);
      }
  </code></pre>