public void TestGenerateGenericGenotypesForAGenotype() { var f = new GenoTypeTestFixture(); f.SetUp(); var expected = new List <Genotype>(); Genotype tDom = new Genotype("T", Dominance.Dominant, Dominance.Dominant); Genotype tHet = new Genotype("T", Dominance.Dominant, Dominance.Recessive); Genotype tRec = new Genotype("T", Dominance.Recessive, Dominance.Recessive); Genotype tHet2 = new Genotype("T", Dominance.Recessive, Dominance.Dominant); expected.Add(tHet); expected.Add(tDom); expected.Add(tRec); expected.Add(tHet2); Genotype tgenotype = new Genotype("T", Dominance.Recessive, Dominance.Recessive); List <Genotype> genericGenotypes = tgenotype.CreateGenericGenotypes(); Assert.AreEqual(expected[0].ToString(), genericGenotypes[0].ToString()); Assert.AreEqual(expected[1].ToString(), genericGenotypes[1].ToString()); Assert.AreEqual(expected[2].ToString(), genericGenotypes[2].ToString()); Assert.AreEqual(expected[3].ToString(), genericGenotypes[3].ToString()); }