title: Directory not found while unit testing
body: <p>When I execute my test case, it fails for path within my machine which doesn't exist and I am getting below error:</p>
  
  <blockquote>
    <p>System.IO.DirectoryNotFoundException: Could not find a part of the
    path 'C:\Data1'.</p>
  </blockquote>
  
  <p>Do I need some kind of fake/mock here to pass the test case or do we have other way to do this?</p>
  
  <p><strong>Class</strong></p>
  
  <pre><code>public class DemoCls
  {
      public void Execute()
      {
          string dataFolder = @"C:\\Data1";
          foreach (string X in Directory.EnumerateFiles(dataFolder, "test" + "*.xml"))
          {
          }
      }
  }
  </code></pre>
  
  <p><strong>Test Case</strong></p>
  
  <pre><code>[TestClass()]
  public class DemoClsTests
  {
      [TestMethod()]
      public void ExecuteTest()
      {
          var X = new DemoCls();
          X.Execute();
      }
  }
  </code></pre>