public void ParseArgument_WithArgumentsOfDifferingCaseWhenCaseInsensitive_ThrowsException() { var opt = new DuplicateArgumentWhenCaseInsensitive(); var parser = new CliParser <DuplicateArgumentWhenCaseInsensitive>( opt, ParserOptions.CaseInsensitive); AssertEx.Throws <DuplicateArgumentException>(() => parser.Parse("-n tim -n robert".Split())); }
public void ParseArgument_WithArgumentsOfDifferingCaseWhenCaseInsensitive_ThrowsException() { var opt = new DuplicateArgumentWhenCaseInsensitive(); AssertEx.Throws <DuplicateArgumentException>(() => new CliParser <DuplicateArgumentWhenCaseInsensitive>( opt, ParserOptions.CaseInsensitive)); }
public void ParseArgument_WithArgumentsOfDifferingCaseWhenCaseInsensitive_ThrowsException() { var opt = new DuplicateArgumentWhenCaseInsensitive(); AssertEx.Throws<DuplicateArgumentException>(() => new CliParser<DuplicateArgumentWhenCaseInsensitive>( opt, ParserOptions.CaseInsensitive)); }