37 references to InsertRange
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Syntax\SeparatedSyntaxListTests.cs (13)
62var insertBetween = insertAfter.InsertRange(1, new[] { SyntaxFactory.ParseExpression("a"), SyntaxFactory.ParseExpression("b"), SyntaxFactory.ParseExpression("c") });
130newList = list.InsertRange(0, new[] { nodeD, nodeE });
146newList = list.InsertRange(0, new[] { nodeD, nodeE });
150newList = list.InsertRange(1, new[] { nodeD, nodeE });
154newList = list.InsertRange(2, new[] { nodeD, nodeE });
158newList = list.InsertRange(3, new[] { nodeD, nodeE });
221Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD }));
222Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { nodeD }));
228Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null));
259newList = list.InsertRange(0, new[] { nodeD, nodeE });
270Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(1, new[] { nodeD }));
271Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD }));
275Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxNode>)null));
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Syntax\SeparatedSyntaxListTests.vb (9)
56newList = list.InsertRange(0, {nodeD, nodeE})
60newList = list.InsertRange(1, {nodeD, nodeE})
64newList = list.InsertRange(2, {nodeD, nodeE})
68newList = list.InsertRange(3, {nodeD, nodeE})
131Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(-1, {nodeD}))
132Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(list.Count + 1, {nodeD}))
168newList = list.InsertRange(0, {nodeD, nodeE})
179Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(1, {nodeD}))
180Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(-1, {nodeD}))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Roslyn.Diagnostics.CSharp.Analyzers (1)