src/GenFx.Tests/GeneticComponentTest.cs
/// <summary>
/// Verifies that the <see cref="GeneticComponent.Validate"/> method works correctly.
/// </summary>
Verifies that the  method works correctly.
Verifies that the method works correctly .
[Fact]
        public void GeneticComponent_Validate()
        {
            TestComponent component = new TestComponent();
            component.IntValue2 = 2;
            component.Validate();
            component = new TestComponent();
            Assert.Throws<ValidationException>(() => component.Validate());
            component = new TestComponent();
            component.IntValue = 5;
            component.IntValue2 = 1;
            Assert.Throws<ValidationException>(() => component.Validate());
        }
[ Fact ] public void GeneticComponent_Validate ( ) { TestComponent component = new TestComponent ( ) ; component . IntValue2 = 2 ; component . Validate ( ) ; component = new TestComponent ( ) ; Assert . Throws < ValidationException > ( ( ) => component . Validate ( ) ) ; component = new TestComponent ( ) ; component . IntValue = 5 ; component . IntValue2 = 1 ; Assert . Throws < ValidationException > ( ( ) => component . Validate ( ) ) ; }
Verifies that the  method works correctly.
Verifies that the method works correctly .
// Should succeed without errors.