public void Help_Static_CalledWithTarget_Exception() { var mock = new Mock<IPrinter>(); var sample = new Sample_22 { Printer = mock.Object }; var p = new Parser<Sample_22>(); p.Run(new[] { "-?" }, sample); }
public void Help_Static() { var mock = new Mock<IPrinter>(); Sample_22.StaticPrinter = mock.Object; var sample = new Sample_22 { Printer = mock.Object }; var p = new Parser<Sample_22>(); p.Run(new[] { "-?" }); Sample_22.StaticPrinter = null; }