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())); }
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")); }