public void SizeOfListTest() { UniqueList list = new UniqueList(); list.AddToList(1); list.AddToList(2); list.AddToList(3); list.AddToList(3); Assert.AreEqual(3, list.SizeOfList()); }
public void DeletFromListTest2() { UniqueList list = new UniqueList(); list.AddToList(4); list.DeleteFromList(4); Assert.IsTrue(list.ListIsEmpty()); list.AddToList(4); list.DeleteFromList(5); }
public void DataFromPosTest() { UniqueList list = new UniqueList(); list.AddToList(1); list.AddToList(2); list.AddToList(3); list.AddToList(5); list.AddToList(4); Assert.AreEqual(3, list.DataFromPos(3)); Assert.AreEqual(4, list.DataFromPos(5)); }
public void ElementExistTest() { UniqueList list = new UniqueList(); list.AddToList(4); Assert.IsTrue(list.ElementExist(4)); Assert.IsFalse(list.ElementExist(5)); }
public void AddTest() { UniqueList list = new UniqueList(); list.AddToList(5); Assert.AreEqual(list.HeadValue(), 5); }
public void AddToListTest() { UniqueList list = new UniqueList(); list.AddToList(4); Assert.IsFalse(list.ListIsEmpty()); }