14 references to Insert
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
613
=>
Insert
(index, element);
Microsoft.CodeAnalysis.UnitTests (13)
Collections\ImmutableSegmentedListTest.cs (13)
71
actual = actual.
Insert
(position, value);
246
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
Insert
(1, 5));
247
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
Insert
(-1, 5));
249
list = list.
Insert
(0, 10);
250
list = list.
Insert
(1, 20);
251
list = list.
Insert
(2, 30);
253
list = list.
Insert
(2, 25);
254
list = list.
Insert
(1, 15);
255
list = list.
Insert
(0, 5);
262
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
Insert
(7, 5));
263
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
Insert
(-1, 5));
271
list = list.
Insert
(0, 2);
272
list = list.
Insert
(1, 3);