Esempio n. 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));
 }
Esempio n. 2
0
        public void Override()
        {
            oneElement.Set(0, "mary");

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