Esempio n. 1
0
File: Tests.cs Progetto: serra/CLAP
        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>());
        }
Esempio n. 2
0
File: Tests.cs Progetto: kurtaj/CLAP
        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);
        }