22 references to ReplaceLineEndings
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (12)
src\Analyzers\CSharp\Tests\FileHeaders\FileHeaderTests.cs (2)
79TestCode = testCode.ReplaceLineEndings(lineEnding), 80FixedCode = 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.Syntax.UnitTests (2)
Parsing\ParsingTests.cs (2)
284Assert.Equal(current.ToString().ReplaceLineEndings("\n"), value); 413, "{trivia.ToString().Replace("\"", "\\\"").ReplaceLineEndings("\\n")}"
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
OrganizeImports\OrganizeUsingsTests.cs (2)
30var document = project.AddDocument("Document", initial.ReplaceLineEndings(endOfLine ?? Environment.NewLine)); 42Assert.Equal(final.ReplaceLineEndings(endOfLine ?? Environment.NewLine), newRoot.ToFullString());
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (3)
DeclarePublicAPIAnalyzerTestsBase.cs (3)
2600source.ReplaceLineEndings("\r\n"), 2602unshippedText.ReplaceLineEndings("\r\n"), 2603fixedUnshippedText.ReplaceLineEndings("\r\n"));
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\StringExtensions.cs (1)
33return input.ReplaceLineEndings(replacementText);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
1470/// This overload is equivalent to calling <see cref="ReplaceLineEndings(string)"/>, passing 1475public string ReplaceLineEndings() => ReplaceLineEndings(Environment.NewLineConst);