示例#1
0
        public void TestInsert()
        {
            ArrayList4Asserter.AssertInsert(
                new ArrayList4 <int>(0),
                new int[] { 1, 2, 3 },
                new IndexOfItems <int, int>(1, 0),
                new IndexOfItems <int, int>(2, 1),
                new IndexOfItems <int, int>(3, 2));

            ArrayList4Asserter.AssertInsert(
                new ArrayList4 <int>(new int[] { 3, 2, 1 }),
                new int[] { 3, 4, 2, 5, 1, 6 },
                new IndexOfItems <int, int>(4, 1),
                new IndexOfItems <int, int>(5, 3),
                new IndexOfItems <int, int>(6, 5));
        }