Example #1
0
 public void RemoveCollapsesList()
 {
     manyElement.Add("tracy");
     Assert.AreEqual(3, manyElement.Size());
     manyElement.Remove("sasha");
     Assert.AreEqual(2, manyElement.Size());
     Assert.AreEqual("tracy", manyElement.Get(1));
 }
Example #2
0
        public void Override()
        {
            oneElement.Set(0, "mary");

            Assert.AreEqual("mary", oneElement.Get(0));
        }
Example #3
0
 public void GetWhenIndexOutOfBounds()
 {
     Assert.Throws <IndexOutOfRangeException>(() => empty.Get(12));
 }