src/GenFx.Tests/GeneticComponentTest.cs
/// <summary>
/// Verifies that an exception is thrown when passing a null or empty property name to
/// <see cref="GeneticComponent.ValidateProperty(object, string)"/>.
/// </summary>
Verifies that an exception is thrown when passing a null or empty property name to
.
Verifies that an exception is thrown when passing a null or empty property name to .
[Fact]
        public void GeneticComponent_ValidateProperty_Name_NullOrEmptyPropertyName()
        {
            TestComponent component = new TestComponent();
            Assert.Throws<ArgumentException>(() => component.TestValidateProperty(1, (string)null));
            Assert.Throws<ArgumentException>(() => component.TestValidateProperty(1, String.Empty));
        }
[ Fact ] public void GeneticComponent_ValidateProperty_Name_NullOrEmptyPropertyName ( ) { TestComponent component = new TestComponent ( ) ; Assert . Throws < ArgumentException > ( ( ) => component . TestValidateProperty ( 1 , ( string ) null ) ) ; Assert . Throws < ArgumentException > ( ( ) => component . TestValidateProperty ( 1 , String . Empty ) ) ; }
Verifies that an exception is thrown when passing a null or empty property name to
.
Verifies that an exception is thrown when passing a null or empty property name to .