public void ArgReviversReviveEnumThrowsOnInvalidValue()
{
var args = new string[] { "-option", "NonExistentOption" };
try
{
Args.Parse<EnumArgs>(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 BasicEnum, options are Option1, Option2, Option3", ex.Message);
}
}