public void CopyToTest() { ExpressionList<ConstantTypes.Integer> list = new ExpressionList<ConstantTypes.Integer>(); var zero = new ConstantTypes.Integer(0); var one = new ConstantTypes.Integer(1); list.Add(zero); list.Add(one); ConstantTypes.Integer[] array = new ConstantTypes.Integer[2]; list.CopyTo(array, 0); Assert.IsTrue(array.Length == 2); Assert.IsTrue(array[0] == zero); Assert.IsTrue(array[1] == one); }