18 references to InsertRange
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
616
=>
InsertRange
(index, items);
Microsoft.CodeAnalysis.UnitTests (17)
Collections\ImmutableSegmentedListTest.cs (17)
79
actual = actual.
InsertRange
(position, values);
279
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
InsertRange
(1, new[] { 1 }));
280
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
InsertRange
(-1, new[] { 1 }));
282
list = list.
InsertRange
(0, new[] { 1, 4, 5 });
283
list = list.
InsertRange
(1, new[] { 2, 3 });
284
list = list.
InsertRange
(2, new int[0]);
287
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
InsertRange
(6, new[] { 1 }));
288
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
InsertRange
(-1, new[] { 1 }));
296
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
InsertRange
(1, nonEmptyList));
297
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
InsertRange
(-1, nonEmptyList));
299
list = list.
InsertRange
(0, ImmutableSegmentedList.Create(1, 104, 105));
300
list = list.
InsertRange
(1, ImmutableSegmentedList.Create(2, 3));
301
list = list.
InsertRange
(2, ImmutableSegmentedList<int>.Empty);
302
list = list.
InsertRange
(3, ImmutableSegmentedList<int>.Empty.
InsertRange
(0, Enumerable.Range(4, 100)));
305
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
InsertRange
(106, nonEmptyList));
306
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
InsertRange
(-1, nonEmptyList));