src/GenFx.Tests/GeneticEntityTest.cs
/// <summary>
/// Tests that the <see cref="GeneticEntity.Equals(object)"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void GeneticEntity_EqualsObject()
        {
            Assert.False(new TestEntity(1).Equals((object)new TestEntity()));
            Assert.False(new TestEntity(-1).Equals((object)new TestEntity()));
            Assert.True(new TestEntity(0).Equals((object)new TestEntity()));
            Assert.False(new TestEntity(0).Equals((object)null));
            Assert.False(new TestEntity(0).Equals((object)"test"));
        }
[ Fact ] public void GeneticEntity_EqualsObject ( ) { Assert . False ( new TestEntity ( 1 ) . Equals ( ( object ) new TestEntity ( ) ) ) ; Assert . False ( new TestEntity ( - 1 ) . Equals ( ( object ) new TestEntity ( ) ) ) ; Assert . True ( new TestEntity ( 0 ) . Equals ( ( object ) new TestEntity ( ) ) ) ; Assert . False ( new TestEntity ( 0 ) . Equals ( ( object ) null ) ) ; Assert . False ( new TestEntity ( 0 ) . Equals ( ( object ) " " ) ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .