public void RemoveLastできる() { linkedList = new ShosLinkedList1 <int> { 20, 40, 80 }; linkedList.RemoveLast(); AssertExtensions.AreEqual(new[] { 20, 40 }, linkedList); linkedList.RemoveLast(); AssertExtensions.AreEqual(new[] { 20 }, linkedList); linkedList.RemoveLast(); AssertExtensions.AreEqual(new int[] { }, linkedList); }
public void RemoveLastTest1() { for (var number = 1; number <= dataNumber; number++) { linkedList1.RemoveLast(); } }
public void 空のときRemoveLastすると例外が飛ぶ() => linkedList.RemoveLast();