20 references to ReplaceLineEndings
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (12)
src\Analyzers\CSharp\Tests\FileHeaders\FileHeaderTests.cs (2)
79
TestCode = testCode.
ReplaceLineEndings
(lineEnding),
80
FixedCode = fixedCode.
ReplaceLineEndings
(lineEnding),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForArrayTests.cs (2)
2663
""".
ReplaceLineEndings
(endOfLine),
2671
""".
ReplaceLineEndings
(endOfLine),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForBuilderTests.cs (2)
1428
""" + s_arrayBuilderApi).
ReplaceLineEndings
(endOfLine),
1439
""" + s_arrayBuilderApi).
ReplaceLineEndings
(endOfLine),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForCreateTests.cs (2)
1012
""".
ReplaceLineEndings
(endOfLine),
1024
""".
ReplaceLineEndings
(endOfLine),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForEmptyTests.cs (2)
1250
""".
ReplaceLineEndings
(endOfLine),
1256
""".
ReplaceLineEndings
(endOfLine),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForFluentTests.cs (2)
2247
""".
ReplaceLineEndings
(endOfLine),
2260
""".
ReplaceLineEndings
(endOfLine),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
CodeActions\AddUsing\AddUsingTests.cs (6)
6423
""".
ReplaceLineEndings
(sourceNewLine),
6439
""".
ReplaceLineEndings
(sourceNewLine),
6472
""".
ReplaceLineEndings
(sourceNewLine),
6495
""".
ReplaceLineEndings
(sourceNewLine),
6524
""".
ReplaceLineEndings
(sourceNewLine),
6547
""".
ReplaceLineEndings
(sourceNewLine),
Debugging\ProximityExpressionsGetterTests.cs (1)
99
{{string.Join(Environment.NewLine, body.
ReplaceLineEndings
("\n").Split('\n').Select(line => line == "" ? line : $" {line}"))}}
SplitStringLiteral\SplitStringLiteralCommandHandlerTests.cs (1)
47
<Document Normalize="{endOfLine is null}">{(endOfLine is null ? inputMarkup : inputMarkup.
ReplaceLineEndings
(endOfLine))}</Document>