示例#1
0
        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()));
        }
示例#2
0
        public void ParseArgument_WithArgumentsOfDifferingCaseWhenCaseInsensitive_ThrowsException()
        {
            var opt = new DuplicateArgumentWhenCaseInsensitive();

            AssertEx.Throws <DuplicateArgumentException>(() =>
                                                         new CliParser <DuplicateArgumentWhenCaseInsensitive>(
                                                             opt, ParserOptions.CaseInsensitive));
        }
示例#3
0
        public void ParseArgument_WithArgumentsOfDifferingCaseWhenCaseInsensitive_ThrowsException()
        {
            var opt = new DuplicateArgumentWhenCaseInsensitive();

            AssertEx.Throws<DuplicateArgumentException>(() =>
                new CliParser<DuplicateArgumentWhenCaseInsensitive>(
                    opt, ParserOptions.CaseInsensitive));
        }