11 references to ReplaceRange
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Syntax\SeparatedSyntaxListTests.vb (9)
113newList = list.ReplaceRange(elementA, {nodeD, nodeE})
117newList = list.ReplaceRange(elementB, {nodeD, nodeE})
121newList = list.ReplaceRange(elementC, {nodeD, nodeE})
125newList = list.ReplaceRange(elementA, New SyntaxNode() {})
129newList = list.ReplaceRange(elementB, New SyntaxNode() {})
133newList = list.ReplaceRange(elementC, New SyntaxNode() {})
145Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.ReplaceRange(nodeD, {nodeE}))
150Assert.Throws(Of ArgumentNullException)(Function() list.ReplaceRange(elementA, DirectCast(Nothing, IEnumerable(Of SyntaxNode))))
191Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.ReplaceRange(nodeD, {nodeE}))