Example #1
0
        public void Setup()
        {
            _testClassWithNoNArgAttributes          = new TestClassWithNoNArgAttributes();
            _parserForTestClassWithNoNArgAttributes = new ArgParser <TestClassWithNoNArgAttributes>(_testProg);

            _testClassWithIntSampleArgument          = new TestClassWithIntSampleArgument();
            _parserForTestClassWithIntSampleArgument = new ArgParser <TestClassWithIntSampleArgument>(_testProg);

            _testClassWithIntArgumentWithAllowedValues          = new TestClassWithIntArgumentWithRequiredValues();
            _parserForTestClassWithIntArgumentWithAllowedValues = new ArgParser <TestClassWithIntArgumentWithRequiredValues>(_testProg);

            _testClassWithOneOptional          = new TestClassWithOneOptional();
            _parserForTestClassWithOneOptional = new ArgParser <TestClassWithOneOptional>(_testProg);

            _testClassWithOneOptionalWithAllowedValues          = new TestClassWithOneOptionalWithAllowedValues();
            _parserFortestClassWithOneOptionalWithAllowedValues = new ArgParser <TestClassWithOneOptionalWithAllowedValues>(_testProg);

            _testClassWithOneOptionalWithArgument          = new TestClassWithOneOptionalWithArgument();
            _parserForTestClassWithOneOptionalWithArgument = new ArgParser <TestClassWithOneOptionalWithArgument>(_testProg);

            _testClassWithTwoOptionalWithArgument          = new TestClassWithTwoOptionalWithArgument();
            _parserForTestClassWithTwoOptionalWithArgument = new ArgParser <TestClassWithTwoOptionalWithArgument>(_testProg);

            _testClassWithMandatoryAndFlagArguments          = new TestClassWithMandatoryAndFlagArguments();
            _parserForTestClassWithMandatoryAndFlagArguments = new ArgParser <TestClassWithMandatoryAndFlagArguments>(_testProg);

            _testClassWithOptionalRankedArguments          = new TestClassWithOptionalRankedArguments();
            _parserForTestClassWithOptionalRankedArguments = new ArgParser <TestClassWithOptionalRankedArguments>(_testProg);

            _testClassWithRequiredRankedArguments          = new TestClassWithRequiredRankedArguments();
            _parserForTestClassWithRequiredRankedArguments = new ArgParser <TestClassWithRequiredRankedArguments>(_testProg);

            _testClassWithRankedRequiredAndOptionalArguments          = new TestClassWithRankedRequiredAndOptionalArguments();
            _parserForTestClassWithRankedRequiredAndOptionalArguments = new ArgParser <TestClassWithRankedRequiredAndOptionalArguments>(_testProg);

            _testClassWithIntArgAndConsumeRemaining          = new TestClassWithIntArgAndConsumeRemaining();
            _parserForTestClassWithIntArgAndConsumeRemaining = new ArgParser <TestClassWithIntArgAndConsumeRemaining>(_testProg);

            _testClassWithIntArgAndConsumeRemainingWithAltName          = new TestClassWithIntArgAndConsumeRemainingWithAltName();
            _parserForTestClassWithIntArgAndConsumeRemainingWithAltName = new ArgParser <TestClassWithIntArgAndConsumeRemainingWithAltName>(_testProg);

            _testClassWithOnlyConsumeRemaining          = new TestClassWithOnlyConsumeRemaining();
            _parserForTestClassWithOnlyConsumeRemaining = new ArgParser <TestClassWithOnlyConsumeRemaining>(_testProg);
        }
Example #2
0
        public void Setup()
        {
            _testClassWithNoNArgAttributes = new TestClassWithNoNArgAttributes();
            _parserForTestClassWithNoNArgAttributes = new ArgParser<TestClassWithNoNArgAttributes>(_testProg);

            _testClassWithIntSampleArgument = new TestClassWithIntSampleArgument();
            _parserForTestClassWithIntSampleArgument = new ArgParser<TestClassWithIntSampleArgument>(_testProg);

            _testClassWithIntArgumentWithAllowedValues = new TestClassWithIntArgumentWithRequiredValues();
            _parserForTestClassWithIntArgumentWithAllowedValues = new ArgParser<TestClassWithIntArgumentWithRequiredValues>(_testProg);

            _testClassWithOneOptional = new TestClassWithOneOptional();
            _parserForTestClassWithOneOptional = new ArgParser<TestClassWithOneOptional>(_testProg);

            _testClassWithOneOptionalWithAllowedValues = new TestClassWithOneOptionalWithAllowedValues();
            _parserFortestClassWithOneOptionalWithAllowedValues = new ArgParser<TestClassWithOneOptionalWithAllowedValues>(_testProg);

            _testClassWithOneOptionalWithArgument = new TestClassWithOneOptionalWithArgument();
            _parserForTestClassWithOneOptionalWithArgument = new ArgParser<TestClassWithOneOptionalWithArgument>(_testProg);

            _testClassWithTwoOptionalWithArgument = new TestClassWithTwoOptionalWithArgument();
            _parserForTestClassWithTwoOptionalWithArgument = new ArgParser<TestClassWithTwoOptionalWithArgument>(_testProg);

            _testClassWithMandatoryAndFlagArguments = new TestClassWithMandatoryAndFlagArguments();
            _parserForTestClassWithMandatoryAndFlagArguments = new ArgParser<TestClassWithMandatoryAndFlagArguments>(_testProg);

            _testClassWithOptionalRankedArguments = new TestClassWithOptionalRankedArguments();
            _parserForTestClassWithOptionalRankedArguments = new ArgParser<TestClassWithOptionalRankedArguments>(_testProg);

            _testClassWithRequiredRankedArguments = new TestClassWithRequiredRankedArguments();
            _parserForTestClassWithRequiredRankedArguments = new ArgParser<TestClassWithRequiredRankedArguments>(_testProg);

            _testClassWithRankedRequiredAndOptionalArguments = new TestClassWithRankedRequiredAndOptionalArguments();
            _parserForTestClassWithRankedRequiredAndOptionalArguments = new ArgParser<TestClassWithRankedRequiredAndOptionalArguments>(_testProg);

            _testClassWithIntArgAndConsumeRemaining = new TestClassWithIntArgAndConsumeRemaining();
            _parserForTestClassWithIntArgAndConsumeRemaining = new ArgParser<TestClassWithIntArgAndConsumeRemaining>(_testProg);

            _testClassWithIntArgAndConsumeRemainingWithAltName = new TestClassWithIntArgAndConsumeRemainingWithAltName();
            _parserForTestClassWithIntArgAndConsumeRemainingWithAltName = new ArgParser<TestClassWithIntArgAndConsumeRemainingWithAltName>(_testProg);

            _testClassWithOnlyConsumeRemaining = new TestClassWithOnlyConsumeRemaining();
            _parserForTestClassWithOnlyConsumeRemaining = new ArgParser<TestClassWithOnlyConsumeRemaining>(_testProg);
        }