src/GenFx.Tests/GeneticEntityTest.cs
/// <summary>
/// Tests that the equality operator works correctly.
/// </summary>
Tests that the equality operator works correctly.
Tests that the equality operator works correctly .
[Fact]
        public void GeneticEntity_EqualityOperator()
        {
            Assert.False(new TestEntity(1) == new TestEntity());
            Assert.False(new TestEntity(-1) == new TestEntity());
            Assert.True(new TestEntity(0) == new TestEntity());
            Assert.False(new TestEntity(0) == null);
            Assert.False(null == new TestEntity(0));
            Assert.True((GeneticEntity)null == (GeneticEntity)null);
        }
[ Fact ] public void GeneticEntity_EqualityOperator ( ) { Assert . False ( new TestEntity ( 1 ) == new TestEntity ( ) ) ; Assert . False ( new TestEntity ( - 1 ) == new TestEntity ( ) ) ; Assert . True ( new TestEntity ( 0 ) == new TestEntity ( ) ) ; Assert . False ( new TestEntity ( 0 ) == null ) ; Assert . False ( null == new TestEntity ( 0 ) ) ; Assert . True ( ( GeneticEntity ) null == ( GeneticEntity ) null ) ; }
Tests that the equality operator works correctly.
Tests that the equality operator works correctly .