public void Setup() { empty = new LegacyList(); oneElement = new LegacyList(); oneElement.Add("sophia"); manyElement = new LegacyList(); manyElement.Add("josh"); manyElement.Add("sasha"); }
public void Expandability() { LegacyList expandableList = new LegacyList(); Assert.AreEqual(10, expandableList.Capacity()); for (int i = 0; i < 11; i++) { expandableList.Add(i); } Assert.AreEqual(11, expandableList.Size()); Assert.AreEqual(20, expandableList.Capacity()); }