public void TestTheTestIsValidAndRevivableMethod()
{
var arg = new CommandLineArgument(typeof(int), "TheInt");
Assert.IsTrue(arg.TestIsValidAndRevivable("100"));
// this should fail on the revive test
Assert.IsFalse(arg.TestIsValidAndRevivable("abc"));
Assert.IsTrue(arg.TestIsValidAndRevivable("2000"));
arg.Metadata.Add(new ArgRegex("1000"));
// this should fail the validation test
Assert.IsFalse(arg.TestIsValidAndRevivable("2000"));
}