public void AreEqualTest()
            {
                ConnectionGene gene1 = new ConnectionGene(Guid.NewGuid(), 1, 0, 2, 1, true);
                ConnectionGene gene2 = new ConnectionGene(Guid.NewGuid(), 1, 0, 2, 1, true);

                Assert.IsTrue(gene1.Equals(gene2));
            }
            public void DifferentWeightTest()
            {
                ConnectionGene gene1 = new ConnectionGene(Guid.NewGuid(), 1, 0, 2, 1, true);
                ConnectionGene gene2 = new ConnectionGene(Guid.NewGuid(), 2, 0, 2, -1, true);

                Assert.IsFalse(gene1.Equals(gene2));
            }
Ejemplo n.º 3
0
            public void DifferentInnovationTest()
            {
                ConnectionGene gene1 = new ConnectionGene(Guid.NewGuid(), 0, 2, 1, 1, true);

                ConnectionGene gene2 = new ConnectionGene(Guid.NewGuid(), 0, 2, 1, 2, true);

                Assert.IsFalse(gene1.Equals(gene2));
            }
            public void DifferentTypeTest(object other)
            {
                ConnectionGene gene1 = new ConnectionGene(Guid.NewGuid(), 1, 0, 2, 1, true);

                Assert.IsFalse(gene1.Equals(other));
            }