Exemple #1
0
        public void MyArrayList_1_Constructor5_1_CapacityEquals5()
        {
            // Arrange
            IMyArrayList lst      = DSBuilder.CreateMyArrayList();
            int          expected = 5;

            // Act
            int actual = lst.Capacity();

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void MyArrayList_5_Clear_1_CapacityRemainsSame()
        {
            // Arrange
            IMyArrayList lst      = DSBuilder.CreateMyArrayList();
            int          expected = 5;

            lst.Add(1);
            lst.Add(2);
            lst.Add(3);
            lst.Add(4);

            // Act
            lst.Clear();
            int actual = lst.Capacity();

            // Assert
            Assert.AreEqual(expected, actual);
        }