public void ReverseNullListIterative() { List <int> l = null; Assert.IsTrue(ExLinkedList <int> .EqualsEnumerable( ExLinkedList <int> .ReverseIterative(ExLinkedList <int> .FromEnumerable(l)), l)); }
public void ReverseSingletonListIterative() { List <int> l = new List <int>() { 99 }; Assert.IsTrue(ExLinkedList <int> .EqualsEnumerable( ExLinkedList <int> .ReverseIterative(ExLinkedList <int> .FromEnumerable(l)), l)); }
public void FromEnumerableTwoOrMoreElements() { List <int> l = new List <int>() { 99, 33, 23, 22 }; Assert.IsTrue( ExLinkedList <int> .EqualsEnumerable( ExLinkedList <int> .FromEnumerable(l), l)); }
public void FromEnumerableSingleton() { List <int> l = new List <int>() { 99 }; Assert.IsTrue( ExLinkedList <int> .EqualsEnumerable( ExLinkedList <int> .FromEnumerable(l), l)); }
public void ReverseListTwoOrMore() { List <int> l = new List <int>() { 99, 33, 23, 667 }; List <int> lReverse = new List <int>(l); lReverse.Reverse(); Assert.IsTrue(ExLinkedList <int> .EqualsEnumerable( ExLinkedList <int> .Reverse(ExLinkedList <int> .FromEnumerable(l)), lReverse)); }