title: Mocking Static Methods
body: <p>Recently, I've begun to use <a href="https://github.com/moq/moq4" rel="noreferrer">Moq</a> to unit test. I use Moq to mock out classes that I don't need to test.</p>
  
  <p>How do you typically deal with static methods?</p>
  
  <pre><code>public void foo(string filePath)
  {
      File f = StaticClass.GetFile(filePath);
  }
  </code></pre>
  
  <p>How could this static method, <code>StaticClass.GetFile()</code> get mocked?</p>
  
  <p>P.S. I'd appreciate any reading materials you recommend on Moq and Unit Testing.</p>