11 references to ReplaceRange
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Syntax\SyntaxTokenListTests.cs (8)
153newList = list.ReplaceRange(elementA, new[] { tokenD, tokenE });
157newList = list.ReplaceRange(elementB, new[] { tokenD, tokenE });
161newList = list.ReplaceRange(elementC, new[] { tokenD, tokenE });
165newList = list.ReplaceRange(elementA, new SyntaxToken[] { });
169newList = list.ReplaceRange(elementB, new SyntaxToken[] { });
173newList = list.ReplaceRange(elementC, new SyntaxToken[] { });
188Assert.Throws<ArgumentNullException>(() => list.ReplaceRange(elementA, (IEnumerable<SyntaxToken>)null));
231Assert.Throws<ArgumentOutOfRangeException>(() => list.ReplaceRange(tokenD, new[] { tokenE }));
Microsoft.CodeAnalysis.VisualBasic (1)