Exemplo n.º 1
0
Arquivo: Tests.cs Projeto: 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>());
        }
Exemplo n.º 2
0
Arquivo: Tests.cs Projeto: 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);
        }