32 references to ReplaceLineEndings
Microsoft.CodeAnalysis.CSharp.Features.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.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)
3025source.ReplaceLineEndings("\r\n"), 3027unshippedText.ReplaceLineEndings("\r\n"), 3028fixedUnshippedText.ReplaceLineEndings("\r\n"));
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\StringExtensions.cs (1)
33return input.ReplaceLineEndings(replacementText);
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (10)
Diagnostics\Suppression\SuppressionTests.vb (6)
742Await TestAsync(source.Value.ReplaceLineEndings(endOfLine), expected.Value.ReplaceLineEndings(endOfLine)) 860Await TestAsync(source.Value.ReplaceLineEndings(endOfLine), expected.Value.ReplaceLineEndings(endOfLine)) 925Await TestAsync(source.Value.ReplaceLineEndings(endOfLine), expected.Value.ReplaceLineEndings(endOfLine))
SimplifyTypeNames\SimplifyTypeNamesTests.vb (4)
1663Await TestInRegularAndScriptAsync(source.Value.ReplaceLineEndings(endOfLine), expected.Value.ReplaceLineEndings(endOfLine)) 1973Await TestInRegularAndScriptAsync(source.Value.ReplaceLineEndings(endOfLine), expected.Value.ReplaceLineEndings(endOfLine))
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);