public void ItThrowsAnErrorIfOutOfRange() { var chromosome = GATestHelper.GetAlphabetCharacterChromosome(); var mutation = new InsertMutation(); mutation.Shift(chromosome, -1, 4); }
public void ItCanShift() { var chromosome = GATestHelper.GetAlphabetCharacterChromosome(); var mutation = new InsertMutation(); mutation.Shift(chromosome, 1, 4); Assert.AreEqual("A,E,B,C,D,F,G,H,I,J", chromosome.ToString()); }