public void should_can_get_empty_string_when_description_undefined() { ArgsParser parser = new ArgsParserBuilder() .BeginDefaultCommand() .AddFlagOption("flag", 'f') .EndCommand() .Build(); string description = parser.Help("-f"); Assert.Equal(string.Empty, description); }
public void should_can_get_description_when_given_description() { string expectDescription = "some description"; ArgsParser parser = new ArgsParserBuilder() .BeginDefaultCommand() .AddFlagOption("flag", 'f', expectDescription) .EndCommand() .Build(); string description = parser.Help("-f"); Assert.Equal(expectDescription, description); }