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