11 references to ReplaceRange
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Syntax\SyntaxTokenListTests.cs (8)
155newList = list.ReplaceRange(elementA, new[] { tokenD, tokenE });
159newList = list.ReplaceRange(elementB, new[] { tokenD, tokenE });
163newList = list.ReplaceRange(elementC, new[] { tokenD, tokenE });
167newList = list.ReplaceRange(elementA, new SyntaxToken[] { });
171newList = list.ReplaceRange(elementB, new SyntaxToken[] { });
175newList = list.ReplaceRange(elementC, new SyntaxToken[] { });
190Assert.Throws<ArgumentNullException>(() => list.ReplaceRange(elementA, (IEnumerable<SyntaxToken>)null));
234Assert.Throws<ArgumentOutOfRangeException>(() => list.ReplaceRange(tokenD, new[] { tokenE }));
Microsoft.CodeAnalysis.VisualBasic (1)