Esempio n. 1
0
        public void SuperListCleanWorks()
        {
            SuperList <int> superList = new SuperList <int>()
            {
                5, 4, 3, 2, 1
            };

            superList.RemoveAt(0);
            superList.RemoveAt(0);
            superList.RemoveAt(0);
            superList.CleanArray();
            int test1 = superList.Capacity;

            Assert.AreEqual(test1, 2);
        }
Esempio n. 2
0
        public void RemoveAtTest()
        {
            SuperList <int> superList = new SuperList <int>()
            {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            };

            superList.RemoveAt(3);
            int test    = superList[3];
            int expeted = 5;

            Assert.AreEqual(test, expeted);
        }