I have a question on unit testing the Main method of a console app. The standard signature is
public static void Main(string[] args)
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.
I don't think i can mock this with MOQ as its a static method.
Anyone have any experience with this?
Any ideas ?
Thanks