public void GetLenghtTest(int[] array, int expected) { DLinkedList list = new DLinkedList(array); int actual = list.GetLenght(); Assert.AreEqual(expected, actual); }