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