Example #1
0
File: Tests.cs Project: serra/CLAP
        public void Parse_UriParameter_WithDefault()
        {
            var mock = new Mock<IPrinter>();

            var sample = new Sample_29 { Printer = mock.Object };

            Parser.Run("bar -x:string".Split(' '), sample);

            mock.Verify(o => o.Print("stringhttp://www.com/".ToLower()));
        }
Example #2
0
File: Tests.cs Project: serra/CLAP
        public void Parse_UriParameter_NoInput()
        {
            var mock = new Mock<IPrinter>();

            var sample = new Sample_29 { Printer = mock.Object };

            Parser.Run("foo -x:string".Split(' '), sample);

            mock.Verify(o => o.Print("string"));
        }