示例#1
0
文件: Tests.cs 项目: serra/CLAP
        public void Empty_Defined_Static_TargetNotNull_Exception()
        {
            var mock = new Mock<IPrinter>();
            var sample = new Sample_14 { Printer = mock.Object };

            var p = new Parser<Sample_14>();

            Expect(() => p.Run(new string[] {}, sample),
                   Throws.InstanceOf<ParserExecutionTargetException>());
        }
示例#2
0
文件: Tests.cs 项目: kurtaj/CLAP
        public void Empty_Defined_Static_TargetNotNull_Exception()
        {
            var mock = new Mock<IPrinter>();
            var sample = new Sample_14 { Printer = mock.Object };

            var p = new Parser<Sample_14>();

            p.Run(new string[] { }, sample);
        }