public void EmptyListIsSorted() { // Arrange var emptyList = new ADTSortedList <int>(); // Act bool isSortedList = emptyList.isSorted(); // Assert Assert.AreEqual(true, isSortedList); }
public void FiveElemListIsSorted() { // Arrange var fiveElemList = new ADTSortedList <int>() .InsertSorted(3) .InsertSorted(5) .InsertSorted(4) .InsertSorted(1) .InsertSorted(6); // Act bool isSortedList = fiveElemList.isSorted(); // Assert Assert.AreEqual(true, isSortedList); }