40 references to InsertRange
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxListTests.cs (11)
98newList = list.InsertRange(0, new[] { nodeD, nodeE });
102newList = list.InsertRange(1, new[] { nodeD, nodeE });
106newList = list.InsertRange(2, new[] { nodeD, nodeE });
110newList = list.InsertRange(3, new[] { nodeD, nodeE });
173Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD }));
174Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { nodeD }));
180Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null));
211newList = list.InsertRange(0, new[] { nodeD, nodeE });
222Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(1, new[] { nodeD }));
223Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD }));
229Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null));
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Syntax\SyntaxListTests.vb (9)
59newList = list.InsertRange(0, {nodeD, nodeE})
63newList = list.InsertRange(1, {nodeD, nodeE})
67newList = list.InsertRange(2, {nodeD, nodeE})
71newList = list.InsertRange(3, {nodeD, nodeE})
134Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(-1, {nodeD}))
135Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(list.Count + 1, {nodeD}))
171newList = list.InsertRange(0, {nodeD, nodeE})
182Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(1, {nodeD}))
183Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(-1, {nodeD}))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)