コード例 #1
0
        public void TestClear()
        {
            MyListArray <int> ints = new MyListArray <int>(new int[] { 1, 2, 3, 4, 5 });

            ints.Clear();
            Assert.AreEqual(0, ints.Count);
        }
コード例 #2
0
 public void ClearTestMethod()
 {
     list.Add(100);
     list.Add(101);
     list.Add(102);
     list.Add(103);
     Assert.AreEqual(4, list.Count);
     list.Clear();
     Assert.AreEqual(0, list.Count);
 }
コード例 #3
0
        public void ClearTestMethod()
        {
            MyListArray <int> list = new MyListArray <int>(1);

            list.Add(100);
            list.Add(101);
            Assert.AreEqual(list.Count, 2);
            list.Clear();
            Assert.AreEqual(list.Count, 0);
        }
コード例 #4
0
 public void TestClear()
 {
     MyListArray<int> ints = new MyListArray<int>(new int[] { 1, 2, 3, 4, 5 });
     ints.Clear();
     Assert.AreEqual(0, ints.Count);
 }