ArgsTests.AllowUnexpectedArgsTests.AllowUnexpectedArgsNotAllowed C# (CSharp) Method

AllowUnexpectedArgsNotAllowed() private method

private AllowUnexpectedArgsNotAllowed ( ) : void
return void
        public void AllowUnexpectedArgsNotAllowed()
        {
            try
            {
                var parsed = Args.Parse<SomeArgsWithNoAllowAttribute>("-dynamicArg", "dynamicValue");
                Assert.Fail("An exception should have been thrownB");
            }
            catch (UnexpectedArgException)
            {

            }
        }