Exemple #1
0
        public void CopyToMethodArgumentException()
        {
            var testList = new ListCollection <int>();

            int[] testArray = new int[4];
            Assert.Throws <ArgumentException>(() => testList.CopyTo(testArray, 2));
        }
Exemple #2
0
        public void CopyToMethodNegativeIndexException()
        {
            var testList = new ListCollection <int>();

            int[] testArray = new int[4];
            Assert.Throws <ArgumentOutOfRangeException>(() => testList.CopyTo(testArray, -1));
        }