34 references to InsertRange
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Features (2)
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 (7)
Microsoft.CodeAnalysis.VisualBasic (2)
Roslyn.Diagnostics.CSharp.Analyzers (3)