示例#1
0
        public void AListClear36Test()
        {
            var a = new AList2 <Person>();

            a.Init(mas);
            a.Clear();
            int size = a.Size();

            Assert.AreEqual(0, size);
        }
        public void AListClear36Test()
        {
            int[] mas = new int[36] {
                1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 33, 34, 35, 36
            };
            var a = new AList2 <int>();

            a.Init(mas);
            a.Clear();
            int size = a.Size();

            Assert.AreEqual(0, size);
        }