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