示例#1
0
        public void TestDeleteIndexOutOfRangePositive()
        {
            int[]      intArray = { 1, 2, 3 };
            MyLL <int> ll       = new MyLL <int>(intArray);

            ll.DeleteIndex(3);
        }
示例#2
0
        public void TestDeleteIndexPresent()
        {
            int[]      intArray = { 1, 2, 3 };
            MyLL <int> ll       = new MyLL <int>(intArray);

            ll.DeleteIndex(1);
            var expect = "1, 3";
            var actual = ll.ToString();

            Assert.AreEqual(expect, actual);
        }