public void TestClone() { CopyOnWriteArrayList <Object> l1 = PopulatedArray(SIZE); CopyOnWriteArrayList <Object> l2 = (CopyOnWriteArrayList <Object>)(l1.Clone()); Assert.AreEqual(l1, l2); l1.Clear(); Assert.IsFalse(l1.Equals(l2)); }
public void TestClone() { CopyOnWriteArrayList <Object> l1 = PopulatedArray(SIZE); CopyOnWriteArrayList <Object> l2 = (CopyOnWriteArrayList <Object>)(l1.Clone()); Assert.AreEqual(l1, l2); l1.Clear(); Assert.IsFalse(l1.Equals(l2)); }