title: C# Unit Testing(Nunit) the Main method of a console app?
body: <p>I have a question on unit testing the Main method of a console app. The standard signature is</p>
  
  <pre><code>  public static void Main(string[] args)
  </code></pre>
  
  <p>I want to be able to test to ensure that only 1 parameter is passed in. If more than one parameter is passed in that i want the test to fail.</p>
  
  <p>I don't think i can mock this with MOQ as its a static method.</p>
  
  <p>Anyone have any experience with this?</p>
  
  <p>Any ideas ?</p>
  
  <p>Thanks</p>