public void RemoveTest_InvalidItem()
        {
            DynamicIntArray array = CreateArray(10);

            Assert.ThrowsException <IndexOutOfRangeException>(() => array.Remove(10), "");
            Assert.ThrowsException <IndexOutOfRangeException>(() => array.Remove(-1), "");
        }
        public void RemoveTest()
        {
            DynamicIntArray array = CreateArray(11);

            array.Remove(5);
            array.Remove(0);
            string result = " 1 2 3 4 6 7 8 9 10";

            Assert.AreEqual(result, array.ToString());
        }
        public void RemoveTest_LastItem()
        {
            DynamicIntArray array = CreateArray(10);

            array.Remove(9);
            string result = " 0 1 2 3 4 5 6 7 8";

            Assert.AreEqual(result, array.ToString());
        }