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)); }
public void Override() { oneElement.Set(0, "mary"); Assert.AreEqual("mary", oneElement.Get(0)); }
public void GetWhenIndexOutOfBounds() { Assert.Throws <IndexOutOfRangeException>(() => empty.Get(12)); }