Esempio n. 1
0
        public void AddArrayToEndTest(int[] array, int[] addedArray, int[] expectedArray)
        {
            DataStructure.ArrayList actual = new DataStructure.ArrayList(array);
            actual.AddToEnd(addedArray);
            DataStructure.ArrayList expected = new DataStructure.ArrayList(expectedArray);

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public ArrayList CopyList()
        {
            ArrayList newList = new ArrayList();

            for (int i = 0; i < Lenght; i++)
            {
                newList.AddToEnd(_array[i]);
            }
            return(newList);
        }