src/GenFx.Components.Tests/BooleanExternalValidatorAttributeTest.cs
/// <summary>
/// Tests an exception is thrown when providing a null or empty property to the constructor.
/// </summary>
Tests an exception is thrown when providing a null or empty property to the constructor.
Tests an exception is thrown when providing a null or empty property to the constructor .
[Fact]
        public void BooleanExternalValidatorAttribute_Ctor_NullProperty()
        {
            Assert.Throws<ArgumentException>(
                () => new BooleanExternalValidatorAttribute(typeof(TestComponent), null, true));
            Assert.Throws<ArgumentException>(
                () => new BooleanExternalValidatorAttribute(typeof(TestComponent), String.Empty, true));
        }
[ Fact ] public void BooleanExternalValidatorAttribute_Ctor_NullProperty ( ) { Assert . Throws < ArgumentException > ( ( ) => new BooleanExternalValidatorAttribute ( typeof ( TestComponent ) , null , true ) ) ; Assert . Throws < ArgumentException > ( ( ) => new BooleanExternalValidatorAttribute ( typeof ( TestComponent ) , String . Empty , true ) ) ; }
Tests an exception is thrown when providing a null or empty property to the constructor.
Tests an exception is thrown when providing a null or empty property to the constructor .