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