17 references to InsertRange
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxTokenListTests.cs (11)
107newList = list.InsertRange(0, new[] { tokenD, tokenE });
111newList = list.InsertRange(1, new[] { tokenD, tokenE });
115newList = list.InsertRange(2, new[] { tokenD, tokenE });
119newList = list.InsertRange(3, new[] { tokenD, tokenE });
182Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD }));
183Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { tokenD }));
189Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxToken>)null));
220newList = list.InsertRange(0, new[] { tokenD, tokenE });
231Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD }));
232Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { tokenD }));
238Assert.Throws<ArgumentNullException>(() => list.InsertRange(0, (IEnumerable<SyntaxToken>)null));
Microsoft.CodeAnalysis.VisualBasic (2)