public void TestGetItemAt() { CustomLinkedList<DayOfWeek> list = new CustomLinkedList<DayOfWeek>(); list.AddLast(DayOfWeek.Monday); list.AddFirst(DayOfWeek.Sunday); list.AddLast(DayOfWeek.Tuesday); list.AddLast(DayOfWeek.Wednesday); Assert.AreEqual( DayOfWeek.Tuesday,list.GetItemAt(2).Data); }
public void TestGetItemAtInvalidIndex() { CustomLinkedList<DayOfWeek> list = new CustomLinkedList<DayOfWeek>(); list.AddLast(DayOfWeek.Sunday); list.AddLast(DayOfWeek.Monday); list.GetItemAt(-1); }