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