public void DeleteElementTest1() { list.AddToHead(1); list.DeleteElement(1); Assert.IsFalse(list.IsContaining(1)); }
public void DeleteElement() { list.Insert("lol"); list.Insert("pop"); list.DeleteElement("pop"); Assert.IsFalse(list.HasElement("pop")); list.DeleteElement("lol"); Assert.IsFalse(list.HasElement("lol")); }
public void DeleteElementFromEmptyListTest() { unique.AddElement("dog", 0); unique.DeleteElement(0); Assert.Throws <DeleteException>(() => unique.DeleteElement(0)); }