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