public void TestSetGetChromosome() { var c1 = LongChromosome.Of(0, 100, 10); var c2 = LongChromosome.Of(0, 100, 10); var c3 = LongChromosome.Of(0, 100, 10); var g = Genotype.Of(c1, c2); }
public void TestCreate() { var c1 = LongChromosome.Of(0, 100, 10); var c2 = LongChromosome.Of(0, 100, 10); var g1 = Genotype.Of(c1, c2); var g2 = g1.NewInstance(); Assert.False(ReferenceEquals(g1, g2)); Assert.False(g1.Equals(g2)); }