20 references to ReplaceLineEndings
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (12)
src\Analyzers\CSharp\Tests\FileHeaders\FileHeaderTests.cs (2)
80TestCode = testCode.ReplaceLineEndings(lineEnding), 81FixedCode = fixedCode.ReplaceLineEndings(lineEnding),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForArrayTests.cs (2)
2896""".ReplaceLineEndings(endOfLine), 2904""".ReplaceLineEndings(endOfLine),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForBuilderTests.cs (2)
1509""" + s_arrayBuilderApi).ReplaceLineEndings(endOfLine), 1520""" + s_arrayBuilderApi).ReplaceLineEndings(endOfLine),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForCreateTests.cs (2)
1102""".ReplaceLineEndings(endOfLine), 1114""".ReplaceLineEndings(endOfLine),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForEmptyTests.cs (2)
1307""".ReplaceLineEndings(endOfLine), 1313""".ReplaceLineEndings(endOfLine),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForFluentTests.cs (2)
2384""".ReplaceLineEndings(endOfLine), 2397""".ReplaceLineEndings(endOfLine),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
CodeActions\AddUsing\AddUsingTests.cs (6)
6392""".ReplaceLineEndings(sourceNewLine), 6408""".ReplaceLineEndings(sourceNewLine), 6443""".ReplaceLineEndings(sourceNewLine), 6466""".ReplaceLineEndings(sourceNewLine), 6497""".ReplaceLineEndings(sourceNewLine), 6520""".ReplaceLineEndings(sourceNewLine),
Debugging\ProximityExpressionsGetterTests.cs (1)
96{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>