public void ArgReviversReviveEnumThrowsOnInvalidValueInFlagList()
{
var args = new string[] { "-o", "One,NonExistentOption, Two" };
try
{
Args.Parse<EnumArgsWithFlags>(args);
Assert.Fail("Should have thrown an exception");
}
catch (Exception ex)
{
Assert.IsInstanceOfType(ex, typeof(ValidationArgException));
Assert.AreEqual("NonExistentOption is not a valid value for type EnumWithFlags, options are Zero, One, Two, Four, Eight, Sixteen", ex.Message);
}
}