public void Help_IntParameter_Exception() { var mock = new Mock<IPrinter>(); var sample = new Sample_25 { Printer = mock.Object }; var p = new Parser<Sample_25>(); Expect(() => p.Run(new[] { "-?" }, sample), Throws.InstanceOf<InvalidHelpHandlerException>()); }
public void Help_IntParameter_Exception() { var mock = new Mock<IPrinter>(); var sample = new Sample_25 { Printer = mock.Object }; var p = new Parser<Sample_25>(); p.Run(new[] { "-?" }, sample); }