Exemple #1
0
        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>());
        }
Exemple #2
0
        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);
        }