public void TestDeleteIndexOutOfRangePositive() { int[] intArray = { 1, 2, 3 }; MyLL <int> ll = new MyLL <int>(intArray); ll.DeleteIndex(3); }
public void TestDeleteIndexPresent() { int[] intArray = { 1, 2, 3 }; MyLL <int> ll = new MyLL <int>(intArray); ll.DeleteIndex(1); var expect = "1, 3"; var actual = ll.ToString(); Assert.AreEqual(expect, actual); }