public void ReverseNullList() { List <int> l = null; Assert.IsTrue(ExLinkedList <int> .EqualsEnumerable( ExLinkedList <int> .Reverse(ExLinkedList <int> .FromEnumerable(l)), l)); }
public void ReverseSingletonList() { List <int> l = new List <int>() { 99 }; Assert.IsTrue(ExLinkedList <int> .EqualsEnumerable( ExLinkedList <int> .Reverse(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)); }