示例#1
0
        public void GetIndexOfMinElementTest(int[] array, int expected)
        {
            DLinkedList list = new DLinkedList(array);

            int actual = list.GetIndexOfMinElement();

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void GetIndexOfMinElementNegativeTest(int[] array)
        {
            DLinkedList actual = new DLinkedList(array);

            Assert.Throws <InvalidOperationException>(() => actual.GetIndexOfMinElement());
        }