title: How can I unit test this C# extension method?
body: <p>I'm just not sure how to mock up a situation to test this.  Should I actually create a file on the file system?</p>
  
  <pre><code>public static void DeleteIfExists(this FileInfo fileInfo)
  {
     if (fileInfo.Exists)
     {
        fileInfo.Delete();
     }
  }
  </code></pre>