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