public void GetIndexOfMinElementTest(int[] array, int expected) { DLinkedList list = new DLinkedList(array); int actual = list.GetIndexOfMinElement(); Assert.AreEqual(expected, actual); }
public void GetIndexOfMinElementNegativeTest(int[] array) { DLinkedList actual = new DLinkedList(array); Assert.Throws <InvalidOperationException>(() => actual.GetIndexOfMinElement()); }