Пример #1
0
        public void __(int[] input, int pivot, int[] expected)
        {
            LinkedListModelExo1 head = ConverterLinkedList.ArrayToLinkedList(input.ToList());

            head = Exo4.Partition(head, pivot);

            CollectionAssert.AreEqual(ConverterLinkedList.LinkedlistToArrayList(head), expected);
        }
Пример #2
0
        //[Test]
        public void __()
        {
            LinkedListModelExo1 head = ConverterLinkedList.ArrayToLinkedList(new List <int> {
                1, 2, 3, 4, 5, 6
            });
            LinkedListModelExo1 item = head.Next.Next.Next;

            Exo3.Remove(item);

            CollectionAssert.AreEqual(ConverterLinkedList.LinkedlistToArrayList(head), new[] { 1, 2, 3, 4, 5, 6, 7 });
        }