src/GenFx.Tests/GeneticComponentTest.cs
/// <summary>
/// Verifies that the <see cref="GeneticComponent.PropertyChanged"/> event is raised correctly.
/// </summary>
Verifies that the  event is raised correctly.
Verifies that the event is raised correctly .
[Fact]
        public void GeneticComponent_OnPropertyChanged()
        {
            TestComponent component = new TestComponent();
            string propertyName = "foo";
            bool eventRaised = false;
            component.PropertyChanged += (sender, args) =>
            {
                eventRaised = true;
                Assert.Equal(propertyName, args.PropertyName);
            };
            component.TestOnPropertyChanged(propertyName);
            Assert.True(eventRaised);
        }
[ Fact ] public void GeneticComponent_OnPropertyChanged ( ) { TestComponent component = new TestComponent ( ) ; string propertyName = " " ; bool eventRaised = false ; component . PropertyChanged += ( sender , args ) => { eventRaised = true ; Assert . Equal ( propertyName , args . PropertyName ) ; } ; component . TestOnPropertyChanged ( propertyName ) ; Assert . True ( eventRaised ) ; }
Verifies that the  event is raised correctly.
Verifies that the event is raised correctly .