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); }
public void ___(int idx, int value) { LinkedListModelExo1 head = ConverterLinkedList.ArrayToLinkedList(new List <int> { 1, 2, 3, 4, 5, 6 }); int result = Exo2.GetAt(head, idx); Assert.That(result, Is.EqualTo(value)); }
//[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 }); }