public void CopyTo ()
{
#region CopyTo
IEnumerable<int> s = new int []{1, 2, 3, 4};
int[] array = new int [5];
s.CopyTo (array, 0);
// Note: trailing 0 because array.Length > s.Length
Assert.IsTrue (new[]{
1, 2, 3, 4, 0
}.SequenceEqual (array));
List<int> collection = new List<int> ();
s.CopyTo (collection);
// Note: same size as s.Length
Assert.IsTrue (new[]{
1, 2, 3, 4
}.SequenceEqual (collection));
#endregion
}