src/GenFx.Tests/EnumValidatorTest.cs
/// <summary>
/// Tests that the <see cref="EnumValidator.IsValid"/> method when an undefined enum value is passed.
/// </summary>
Tests that the  method when an undefined enum value is passed.
Tests that the method when an undefined enum value is passed .
[Fact]
        public void EnumValidator_IsValid_UndefinedEnumValue()
        {
            CustomEnumValidator validator = new CustomEnumValidator(typeof(FitnessType));
            string errorMessage;
            bool result = validator.IsValid((FitnessType)4, "test", this, out errorMessage);
            Assert.False(result);
            Assert.NotNull(errorMessage);
        }
[ Fact ] public void EnumValidator_IsValid_UndefinedEnumValue ( ) { CustomEnumValidator validator = new CustomEnumValidator ( typeof ( FitnessType ) ) ; string errorMessage ; bool result = validator . IsValid ( ( FitnessType ) 4 , " " , this , out errorMessage ) ; Assert . False ( result ) ; Assert . NotNull ( errorMessage ) ; }
Tests that the  method when an undefined enum value is passed.
Tests that the method when an undefined enum value is passed .