public void CopyTo_Collection () { IEnumerable<int> s = null; var c = new List<int> (); Assert.Throws<ArgumentNullException>(() => s.CopyTo (c)); s = new int [0]; c = null; Assert.Throws<ArgumentNullException>(() => s.CopyTo (c)); }