public void CopyToMethodArgumentException() { var testList = new ListCollection <int>(); int[] testArray = new int[4]; Assert.Throws <ArgumentException>(() => testList.CopyTo(testArray, 2)); }
public void CopyToMethodNegativeIndexException() { var testList = new ListCollection <int>(); int[] testArray = new int[4]; Assert.Throws <ArgumentOutOfRangeException>(() => testList.CopyTo(testArray, -1)); }