25 references to Insert
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxTriviaListTests.cs (11)
80newList = list.Insert(0, triviaD);
84newList = list.Insert(1, triviaD);
88newList = list.Insert(2, triviaD);
92newList = list.Insert(3, triviaD);
169Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, triviaD));
170Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, triviaD));
176Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxTrivia)));
204newList = list.Insert(0, triviaD);
217Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, triviaD));
218Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, triviaD));
224Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxTrivia)));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.VisualBasic.Features (1)