title: wrapping a static class/method in order to unit test it?
body: <p>I've got a static class that I am using for logging:</p>
  
  <pre><code>public static class myLogger
  {
      public static ErrorLogging(string input)
      {
          //dostuff
      }
  }
  </code></pre>
  
  <p>The way I am using it is:</p>
  
  <pre><code>public class myClassthatDoesStuff
  {
      ...
      myLogger.ErrorLogging("some error ocurred");
      ...
  }
  </code></pre>
  
  <p>How can I moq the <strong>myLogger</strong> class in order to be able to unit test it and ensure that the <strong>ErrorLogging</strong> method was executed? <strong>Is it possible to do this without setting any parameters in the constructor (constructor injection)?</strong> <em>myClassthatDoesStuff</em> requires that there are no parameters in the constructor.</p>