public void Should_throw_argument_exception_if_invalid_index(int index)
        {
            // Arrange
            var list = MyListFactory.CreateWithFiveCapacity();

            list.Add(10);
            list.Add(20);

            // Act -> Assert
            Assert.ThrowsException <ArgumentException>(() => list.RemoveAt(index));
        }
        public void Should_change_count()
        {
            // Arrange
            var list = MyListFactory.CreateWithFiveCapacity();

            // Act
            list.Add(10);
            list.Add(20);

            // Assert
            Assert.AreEqual(list.Length, 2);
        }
        public void Should_add()
        {
            // Arrange
            var list = MyListFactory.CreateWithFiveCapacity();

            // Act
            list.Add(10);
            list.Add(20);

            // Assert
            Assert.AreEqual(list[0], 10);
        }
        public void Should_get()
        {
            // Arrange
            var list = MyListFactory.CreateWithFiveCapacity();

            list.Add(10);

            // Act
            var val = list[0];

            // Assert
            Assert.AreEqual(val, 10);
        }
        public void Should_be_flexible()
        {
            // Arrange
            var list = MyListFactory.CreateWithFiveCapacity();

            // Act
            for (int val = 1; val <= 20; val++)
            {
                list.Add(val);
            }

            // Assert
            Assert.AreEqual(list.Length, 20);
        }
        public void Should_return_false_if_not_contains()
        {
            // Arrange
            var list = MyListFactory.CreateWithFiveCapacity();

            list.Add(10);
            list.Add(20);

            // Act
            var contains = list.Contains(-10);

            // Assert
            Assert.AreEqual(contains, false);
        }
        public void Should_insert()
        {
            // Arrange
            var list = MyListFactory.CreateWithFiveCapacity();

            list.Add(10);
            list.Add(20);

            // Act
            list.Insert(0, 0);
            list.Insert(1, 30);
            list.Insert(3, 40);

            // Assert
            Assert.AreEqual(list[1], 30);
        }