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

            int[] testArray = new int[4];
            Assert.Throws <ArgumentOutOfRangeException>(() => testList.RemoveAt(-2));
        }
Beispiel #2
0
        public void ValidatesRemoveAtMethod()
        {
            var test = new ListCollection <int>();

            test.Add(5);
            test.Add(3);
            test.RemoveAt(0);
            Assert.Equal(3, test[0]);
        }