public void TestClear() { MyListArray <int> ints = new MyListArray <int>(new int[] { 1, 2, 3, 4, 5 }); ints.Clear(); Assert.AreEqual(0, ints.Count); }
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); }
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); }
public void TestClear() { MyListArray<int> ints = new MyListArray<int>(new int[] { 1, 2, 3, 4, 5 }); ints.Clear(); Assert.AreEqual(0, ints.Count); }