17 references to InsertRange
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxTokenListTests.cs (11)
105newList = list.InsertRange(0, new[] { tokenD, tokenE });
109newList = list.InsertRange(1, new[] { tokenD, tokenE });
113newList = list.InsertRange(2, new[] { tokenD, tokenE });
117newList = list.InsertRange(3, new[] { tokenD, tokenE });
180Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD }));
181Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { tokenD }));
187Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxToken>)null));
217newList = list.InsertRange(0, new[] { tokenD, tokenE });
228Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD }));
229Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { tokenD }));
235Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxToken>)null));
Microsoft.CodeAnalysis.VisualBasic (2)