Skip to content

Commit

Permalink
- Test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bgarate committed Mar 7, 2016
1 parent fb00a07 commit 8e15d62
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Evolution/Evolution.Test/ListGenotypeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public void TestConstructors()
ListGenotype<FloatGene> genotype2 = new ListGenotype<FloatGene>(genotype);

Assert.AreEqual(genotype2.Count, 5);

Assert.IsTrue(genotype.All(g1 => genotype2.All(g2 => !ReferenceEquals(g1, g2))));
Assert.AreNotSame(genotype,genotype2);
for (int i = 0; i < genotype.Count; i++)
{
Assert.AreSame(genotype[i],genotype2[i]);
}
}
}
}

0 comments on commit 8e15d62

Please sign in to comment.