public void CopyToArrayTest() { var tree = new AvlTree <int>(); var src = new int[100]; for (int i = 0; i < src.Length; i++) { src[i] = i + 1; tree.Add(i + 1); } var dest = new int[100]; tree.CopyTo(dest, 0); Assert.Equal(src, dest); }