public void Remove_the_Entire_List() //удалить весь список { OLS <string> list = new OLS <string>(); list.Add_in_Tail("Смирнов"); list.Add_in_Head("Петров"); list.Add_in_Head("Иванов"); list.Add_in_Head("Васичкин"); list.Clear(); OLS <string> .Node <string> current = list.head; while (current != null) { Assert.AreEqual(current.Data, null); current = current.Next; } }
public void ЕслиУдаляюСписок() { list.Clear(); }