33 references to ToFullString
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (30)
Syntax\SyntaxNormalizerTests.cs (1)
3992
var actual = trivia.NormalizeWhitespace(" ").
ToFullString
();
Syntax\SyntaxTriviaListTests.cs (29)
59
Assert.Equal("/*A*//*B*//*C*/", list.
ToFullString
());
74
Assert.Equal("/*A*//*B*//*C*//*D*/", newList.
ToFullString
());
78
Assert.Equal("/*A*//*B*//*C*//*D*//*E*/", newList.
ToFullString
());
82
Assert.Equal("/*D*//*A*//*B*//*C*/", newList.
ToFullString
());
86
Assert.Equal("/*A*//*D*//*B*//*C*/", newList.
ToFullString
());
90
Assert.Equal("/*A*//*B*//*D*//*C*/", newList.
ToFullString
());
94
Assert.Equal("/*A*//*B*//*C*//*D*/", newList.
ToFullString
());
98
Assert.Equal("/*D*//*E*//*A*//*B*//*C*/", newList.
ToFullString
());
102
Assert.Equal("/*A*//*D*//*E*//*B*//*C*/", newList.
ToFullString
());
106
Assert.Equal("/*A*//*B*//*D*//*E*//*C*/", newList.
ToFullString
());
110
Assert.Equal("/*A*//*B*//*C*//*D*//*E*/", newList.
ToFullString
());
114
Assert.Equal("/*B*//*C*/", newList.
ToFullString
());
118
Assert.Equal("/*A*//*B*/", newList.
ToFullString
());
122
Assert.Equal("/*B*//*C*/", newList.
ToFullString
());
126
Assert.Equal("/*A*//*C*/", newList.
ToFullString
());
130
Assert.Equal("/*A*//*B*/", newList.
ToFullString
());
134
Assert.Equal("/*D*//*B*//*C*/", newList.
ToFullString
());
138
Assert.Equal("/*A*//*D*//*C*/", newList.
ToFullString
());
142
Assert.Equal("/*A*//*B*//*D*/", newList.
ToFullString
());
146
Assert.Equal("/*D*//*E*//*B*//*C*/", newList.
ToFullString
());
150
Assert.Equal("/*A*//*D*//*E*//*C*/", newList.
ToFullString
());
154
Assert.Equal("/*A*//*B*//*D*//*E*/", newList.
ToFullString
());
158
Assert.Equal("/*B*//*C*/", newList.
ToFullString
());
162
Assert.Equal("/*A*//*C*/", newList.
ToFullString
());
166
Assert.Equal("/*A*//*B*/", newList.
ToFullString
());
198
Assert.Equal("/*D*/", newList.
ToFullString
());
202
Assert.Equal("/*D*//*E*/", newList.
ToFullString
());
206
Assert.Equal("/*D*/", newList.
ToFullString
());
210
Assert.Equal("/*D*//*E*/", newList.
ToFullString
());
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxNormalizerTests.vb (1)
795
Dim actual = trivia.NormalizeWhitespace(indentation:=" ", elasticTrivia:=False, useDefaultCasing:=False).
ToFullString
()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (2)
251
Return GetTrailingTrivia(token1).
ToFullString
().GetNumberOfLineBreaks() +
252
GetLeadingTrivia(token2).
ToFullString
().GetNumberOfLineBreaks()