src/GenFx.Tests/PropertyValidatorExtensionsTest.cs
/// <summary>
/// Tests that the proper exception is thrown when the property is invalid.
/// </summary>
Tests that the proper exception is thrown when the property is invalid.
Tests that the proper exception is thrown when the property is invalid .
[Fact]
        public void PropertyValidatorExtensions_EnsureIsValid_ThrowOnInvalid()
        {
            CustomValidator validator = new CustomValidator { IsValidReturnValue = false };
            Assert.Throws<ValidationException>(() => PropertyValidatorExtensions.EnsureIsValid(validator, "foo", 2, this));
        }
[ Fact ] public void PropertyValidatorExtensions_EnsureIsValid_ThrowOnInvalid ( ) { CustomValidator validator = new CustomValidator { IsValidReturnValue = false } ; Assert . Throws < ValidationException > ( ( ) => PropertyValidatorExtensions . EnsureIsValid ( validator , " " , 2 , this ) ) ; }
Tests that the proper exception is thrown when the property is invalid.
Tests that the proper exception is thrown when the property is invalid .