public void Global_Defined_MoreThanOneParameter_Exception() { var mock = new Mock<IPrinter>(); var sample = new Sample_12 { Printer = mock.Object }; var p = new Parser<Sample_12>(); Expect(() => p.Run("print -foo".Split(' '), sample), Throws.InstanceOf<NotSupportedException>()); }
public void Global_Defined_MoreThanOneParameter_Exception() { var mock = new Mock<IPrinter>(); var sample = new Sample_12 { Printer = mock.Object }; var p = new Parser<Sample_12>(); p.Run("print -foo".Split(' '), sample); }