示例#1
0
        public void ReverseNullList()
        {
            List <int> l = null;

            Assert.IsTrue(ExLinkedList <int> .EqualsEnumerable(
                              ExLinkedList <int> .Reverse(ExLinkedList <int> .FromEnumerable(l)),
                              l));
        }
示例#2
0
        public void ReverseSingletonList()
        {
            List <int> l = new List <int>()
            {
                99
            };

            Assert.IsTrue(ExLinkedList <int> .EqualsEnumerable(
                              ExLinkedList <int> .Reverse(ExLinkedList <int> .FromEnumerable(l)),
                              l));
        }
示例#3
0
        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));
        }