public void IntegerListEntity_CopyTo() { IntegerListEntity entity = GetEntity(); IntegerListEntity entity2 = new TestIntegerListEntity(); entity2.Initialize(GetAlgorithm(4)); entity.CopyTo(entity2); CompareGeneticEntities(entity, entity2); }
public void IntegerListEntity_CopyTo_NullEntity() { IntegerListEntity entity = GetEntity(); Assert.Throws <ArgumentNullException>(() => entity.CopyTo(null)); }