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