public void IsSortedOnSortedList() { SinglyLinkedList list = new SinglyLinkedList("bar", "foo"); Assert.IsTrue(list.IsSorted()); }
public void IsSortedOnUnsortedList() { SinglyLinkedList list = new SinglyLinkedList("foo", "bar"); Assert.IsFalse(list.IsSorted()); }
public void IsSortedOnEmptyList() { SinglyLinkedList list = new SinglyLinkedList(); Assert.IsTrue(list.IsSorted()); }
public void IsSortedOnListOfDuplicates() { SinglyLinkedList list = new SinglyLinkedList("foo", "foo"); Assert.IsTrue(list.IsSorted()); }
public void IsSortedOnSingleItemList() { SinglyLinkedList<string> list = new SinglyLinkedList<string>("foo"); Assert.IsTrue(list.IsSorted()); }
public void IsSortedOnLargerUnsortedList() { SinglyLinkedList list = new SinglyLinkedList("bar", "grille", "foo", "apple"); Assert.IsFalse(list.IsSorted()); }
public void IsSortedOnUnsortedMultipleItemList() { SinglyLinkedList list = new SinglyLinkedList("foo", "boo", "apple"); Assert.IsFalse(list.IsSorted()); }
public void IsSortedOnSortedMultipleItemList() { SinglyLinkedList list = new SinglyLinkedList("apple", "bar", "foo"); Assert.IsTrue(list.IsSorted()); }
public void IsSortedOnSortedLongerList() { SinglyLinkedList list = new SinglyLinkedList("abc", "bar", "def", "foo", "zoo"); Assert.IsTrue(list.IsSorted()); }
public void IsSortedOnLongerUnsortedList() { SinglyLinkedList list = new SinglyLinkedList("foo", "bar", "cat", "ark"); Assert.IsFalse(list.IsSorted()); }
public void IsSortedOnLongerListWithDuplicates() { SinglyLinkedList list = new SinglyLinkedList("bar", "bar", "foo", "grille"); Assert.IsTrue(list.IsSorted()); }