public void RemoveAt() { var l = new UnorderedList <int>(new int[] { 1, 2, 3, 4, 5 }); l.DangerousRemoveAt(1); Assert.AreEqual( new int[] { 1, 5, 3, 4 }, l.ToArray() ); l.DangerousRemoveAt(2); Assert.AreEqual( new int[] { 1, 5, 4 }, l.ToArray() ); }
public void RemoveCurrent() { _List.DangerousRemoveAt(_Index + _Offset); _Count -= 1; _Index -= 1; }