public void LinkedListPs_InsertAt_InsertOnWrongPosition_ThrowsIndexOutOfRangeException(int index) { var list = new LinkedListPs<string>(); list.AddLast("0"); list.AddLast("1"); list.AddLast("2"); list.InsertAt(index, "kopytko"); }
public void LinkedListPs_InsertAt_Ok(int position) { var list = new LinkedListPs<string>(); list.AddLast("0"); list.AddLast("1"); list.AddLast("2"); list.InsertAt(position, "kopytko"); list[position].ShouldBe("kopytko"); }