Exemple #1
0
        public void DeleteElementTest1()
        {
            list.AddToHead(1);
            list.DeleteElement(1);

            Assert.IsFalse(list.IsContaining(1));
        }
Exemple #2
0
 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"));
 }
Exemple #3
0
 public void DeleteElementFromEmptyListTest()
 {
     unique.AddElement("dog", 0);
     unique.DeleteElement(0);
     Assert.Throws <DeleteException>(() => unique.DeleteElement(0));
 }