public void TestAddCollection() { List <object> l = new List <object>(); l.Add("a"); l.Add("b"); object list = null; list = LazyList.AddCollection(list, l); list = LazyList.AddCollection(list, l); Assert.AreEqual(4, LazyList.Size(list)); Assert.AreEqual("a", LazyList.Get(list, 0)); Assert.AreEqual("b", LazyList.Get(list, 1)); Assert.AreEqual("a", LazyList.Get(list, 2)); Assert.AreEqual("b", LazyList.Get(list, 3)); }