Example #1
0
        public void AddArrayListToStart_WhenListPassed_AddArrayListToStart(int[] actualArray, int[] arrayForList, int[] expectedArray)
        {
            ArrayList actual            = ArrayList.Create(actualArray);
            ArrayList list              = ArrayList.Create(arrayForList);
            ArrayList expectedArrayList = ArrayList.Create(expectedArray);

            actual.AddArrayListToStart(list);
            Assert.AreEqual(expectedArrayList, actual);
        }
Example #2
0
        public void AddArrayListToStart_WhenValidValuePassed_ShouldAddArrayListInTheEndOfTheOtherList_Tests(int[] actualArray, int[] expectedArray)
        {
            ArrayList actual    = ArrayList.Create(actualArray);
            ArrayList expected  = ArrayList.Create(expectedArray);
            ArrayList addedList = ArrayList.Create(new int[] { 0, 0, 0 });

            actual.AddArrayListToStart(addedList);

            Assert.AreEqual(expected, actual);
        }