예제 #1
0
        public void Help_WithInvalidShortName_ThrowsException()
        {
            var help = new Usage.AutomaticHelpGenerator <object>();

            help.ShortName = '.';

            AssertEx.ThrowsAggregateContaining <ArgumentIntegrityException>(
                () => new CliParser <object>(new object(), help));
        }
예제 #2
0
        public void Help_WithInvalidLongNameEndingWithDash_ThrowsException()
        {
            var help = new Usage.AutomaticHelpGenerator <object>();

            help.LongName = "none-";

            AssertEx.ThrowsAggregateContaining <ArgumentIntegrityException>(
                () => new CliParser <object>(new object(), help));
        }
예제 #3
0
        public void Version_WithInvalidLongNameBeginningWithDigit_ThrowsException()
        {
            var help = new Usage.AutomaticHelpGenerator <object>();

            //help.Version.LongName = "1none";

            AssertEx.ThrowsAggregateContaining <ArgumentIntegrityException>(() =>
                                                                            new CliParser <object>(new object(), help));
        }
예제 #4
0
        public void Help_WithInvalidLongNameBeginningWithDigit_ThrowsException()
        {
            var help = new Usage.AutomaticHelpGenerator<object>();
            help.LongName = "1none";

            AssertEx.ThrowsAggregateContaining<ArgumentIntegrityException>(() =>
            {
                new CliParser<object>(new object(), help);
            });
        }
예제 #5
0
        public void Version_WithInvalidShortNameAsDigit_ThrowsException()
        {
            var help = new Usage.AutomaticHelpGenerator <object>();

            //help.Version.ShortName = '1';

            AssertEx.ThrowsAggregateContaining <ArgumentIntegrityException>(() =>
            {
                new CliParser <object>(new object(), help);
            });
        }
예제 #6
0
        public void Version_WithInvalidShortName_ThrowsException()
        {
            var help = new Usage.AutomaticHelpGenerator<object>();
            //help.Version.ShortName = '.';

            AssertEx.ThrowsAggregateContaining<ArgumentIntegrityException>(
                () => new CliParser<object>(new object(), help));
        }
예제 #7
0
        public void Version_WithInvalidLongNameEndingWithDash_ThrowsException()
        {
            var help = new Usage.AutomaticHelpGenerator<object>();
            //help.Version.LongName = "none-";

            AssertEx.ThrowsAggregateContaining<ArgumentIntegrityException>(() =>
            new CliParser<object>(new object(), help));
        }