示例#1
0
        public IEnumerable <object[]> LinkedLists()
        {
            var first = new MyLinkedList <int>(9);

            first.Append(9);
            first.Append(9);

            var second = new MyLinkedList <int>(9);

            second.Append(9);
            second.Append(9);

            yield return(new object[] { first, second });
        }
示例#2
0
        public IEnumerable <MyLinkedList <int> > LinkedLists()
        {
            var myLinkedList = new MyLinkedList <int>(0);

            for (int i = 1; i < 1000; i++)
            {
                myLinkedList.Append(i);
            }

            yield return(myLinkedList);
        }