public void SingleArgumentShortForm() { var input = "get-history -u @datum-earth"; var expected = new ParseResult <CommandSkeleton>() { Value = new CommandSkeleton("get-history", new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("-u", "@datum-earth") }), Successful = true, Error = null }; var parser = new StandardParser(); var actual = parser.GetCommand(input); Assert.IsTrue(ResultsAreEqual(expected, actual)); }
public void OneArgument_Verbose() { var input = "get-history --username \"datum earth\""; var expected = new ParseResult <CommandSkeleton>() { Value = new CommandSkeleton("get-history", new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("--username", "\"datum earth\"") }), Successful = true, Error = null }; var parser = new StandardParser(); var actual = parser.GetCommand(input); Assert.IsTrue(ResultsAreEqual(expected, actual)); }