How to mock a directory in .net for a TestMethod in .NET
<p>I am new to .NET so here is my question.</p>

<p>I need to generate a excel document.
In my test method I need to send a path to my folder.
How can I mock this in order to not have the build failed?</p>

<p>Thank you in advance.</p>

<p>This is what I have now:</p>

<pre><code>[TestMethod]
public void ExportReoccuringRoutes()
{
    // Arrange

    var path = "d:";
    ...........................
    // Act

    var file = _routeTemplateService.ExportReoccuringRoutes(path,
    reocurringRouteSearch);
</code></pre>