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

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

            ll.AddBefore(2, 4);
            var expect = "1, 4, 2, 3";
            var actual = ll.ToString();

            Assert.AreEqual(expect, actual);
        }