src/GenFx.Tests/EnumValidatorTest.cs
/// <summary>
/// Tests that an exception is thrown when a null or empty property name is passed to <see cref="EnumValidator.IsValid"/>.
/// </summary>
Tests that an exception is thrown when a null or empty property name is passed to .
Tests that an exception is thrown when a null or empty property name is passed to .
[Fact]
        public void EnumValidator_IsValid_NullPropertyName()
        {
            CustomEnumValidator validator = new CustomEnumValidator(typeof(FitnessType));
            string errorMessage;
            Assert.Throws<ArgumentException>(() => validator.IsValid(FitnessType.Raw, null, this, out errorMessage));
            Assert.Throws<ArgumentException>(() => validator.IsValid(FitnessType.Raw, String.Empty, this, out errorMessage));
        }
[ Fact ] public void EnumValidator_IsValid_NullPropertyName ( ) { CustomEnumValidator validator = new CustomEnumValidator ( typeof ( FitnessType ) ) ; string errorMessage ; Assert . Throws < ArgumentException > ( ( ) => validator . IsValid ( FitnessType . Raw , null , this , out errorMessage ) ) ; Assert . Throws < ArgumentException > ( ( ) => validator . IsValid ( FitnessType . Raw , String . Empty , this , out errorMessage ) ) ; }
Tests that an exception is thrown when a null or empty property name is passed to .
Tests that an exception is thrown when a null or empty property name is passed to .