19 references to Insert
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxTokenListTests.cs (11)
91newList = list.Insert(0, tokenD);
95newList = list.Insert(1, tokenD);
99newList = list.Insert(2, tokenD);
103newList = list.Insert(3, tokenD);
180Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD));
181Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, tokenD));
187Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxToken)));
216newList = list.Insert(0, tokenD);
229Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, tokenD));
230Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD));
236Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxToken)));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.Interop.SourceGeneration (1)