public void Help_WithInvalidShortName_ThrowsException() { var help = new Usage.AutomaticHelpGenerator <object>(); help.ShortName = '.'; AssertEx.ThrowsAggregateContaining <ArgumentIntegrityException>( () => new CliParser <object>(new object(), help)); }
public void Help_WithInvalidLongNameEndingWithDash_ThrowsException() { var help = new Usage.AutomaticHelpGenerator <object>(); help.LongName = "none-"; AssertEx.ThrowsAggregateContaining <ArgumentIntegrityException>( () => new CliParser <object>(new object(), help)); }
public void Version_WithInvalidLongNameBeginningWithDigit_ThrowsException() { var help = new Usage.AutomaticHelpGenerator <object>(); //help.Version.LongName = "1none"; AssertEx.ThrowsAggregateContaining <ArgumentIntegrityException>(() => new CliParser <object>(new object(), help)); }
public void Help_WithInvalidLongNameBeginningWithDigit_ThrowsException() { var help = new Usage.AutomaticHelpGenerator<object>(); help.LongName = "1none"; AssertEx.ThrowsAggregateContaining<ArgumentIntegrityException>(() => { new CliParser<object>(new object(), help); }); }
public void Version_WithInvalidShortNameAsDigit_ThrowsException() { var help = new Usage.AutomaticHelpGenerator <object>(); //help.Version.ShortName = '1'; AssertEx.ThrowsAggregateContaining <ArgumentIntegrityException>(() => { new CliParser <object>(new object(), help); }); }
public void Version_WithInvalidShortName_ThrowsException() { var help = new Usage.AutomaticHelpGenerator<object>(); //help.Version.ShortName = '.'; AssertEx.ThrowsAggregateContaining<ArgumentIntegrityException>( () => new CliParser<object>(new object(), help)); }
public void Version_WithInvalidLongNameEndingWithDash_ThrowsException() { var help = new Usage.AutomaticHelpGenerator<object>(); //help.Version.LongName = "none-"; AssertEx.ThrowsAggregateContaining<ArgumentIntegrityException>(() => new CliParser<object>(new object(), help)); }