public void RemoveRange() { var items = new int[] { 1, 2, 3, 4, 5, 6, 7 }; var l = new DenseList <int>(items); l.RemoveRange(5, 1); l.RemoveRange(1, 2); var l2 = new List <int>(items); l2.RemoveRange(5, 1); l2.RemoveRange(1, 2); Assert.AreEqual( l2.ToArray(), l.ToArray() ); }