Esempio n. 1
0
 public void Setup()
 {
     empty      = new LegacyList();
     oneElement = new LegacyList();
     oneElement.Add("sophia");
     manyElement = new LegacyList();
     manyElement.Add("josh");
     manyElement.Add("sasha");
 }
Esempio n. 2
0
        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());
        }