Base:
1 override of ToString
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
559 references to ToString
IdeCoreBenchmarks (1)
Microsoft.Analyzers.Extra.Tests (8)
Microsoft.Analyzers.Local (1)
Microsoft.Analyzers.Local.Tests (7)
Resources\RoslynTestUtils.cs (7)
381results.Add(s.ToString().Replace("\r\n", "\n", StringComparison.Ordinal));
389results.Add(s.ToString().Replace("\r\n", "\n", StringComparison.Ordinal));
396results.Add(s.ToString().Replace("\r\n", "\n", StringComparison.Ordinal));
472results.Add(s.ToString().Replace("\r\n", "\n", StringComparison.Ordinal));
480results.Add(s.ToString().Replace("\r\n", "\n", StringComparison.Ordinal));
487results.Add(s.ToString().Replace("\r\n", "\n", StringComparison.Ordinal));
508return document.WithText(SourceText.From(newText.ToString(), newText.Encoding, newText.ChecksumAlgorithm));
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (28)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\LocalFunctionTests.cs (12)
7344var localFuncPosition = tree.GetText().ToString().IndexOf("void local<TParameter>()", StringComparison.Ordinal) - 1;
7345var methodPosition = tree.GetText().ToString().IndexOf("void M2<TParameter>()", StringComparison.Ordinal) - 1;
7497var localFuncPosition = tree.GetText().ToString().IndexOf("[My(a)]", StringComparison.Ordinal);
7498var methodPosition = tree.GetText().ToString().IndexOf("[My(b)]", StringComparison.Ordinal);
7571var localFuncPosition = tree.GetText().ToString().IndexOf("positionA", StringComparison.Ordinal);
7572var methodPosition = tree.GetText().ToString().IndexOf("positionB", StringComparison.Ordinal);
8927var localFuncPosition = tree.GetText().ToString().IndexOf("positionA", StringComparison.Ordinal);
8928var methodPosition = tree.GetText().ToString().IndexOf("positionB", StringComparison.Ordinal);
9431var localFuncPosition = tree.GetText().ToString().IndexOf("positionA", StringComparison.Ordinal);
9432var methodPosition = tree.GetText().ToString().IndexOf("positionB", StringComparison.Ordinal);
9749var localFuncPosition = tree.GetText().ToString().IndexOf("positionA", StringComparison.Ordinal);
9750var methodPosition = tree.GetText().ToString().IndexOf("positionB", StringComparison.Ordinal);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (77)
IncrementalParsing\IncrementalParsingTests.cs (67)
500var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
532var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
579var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
843var fullTree = SyntaxFactory.ParseSyntaxTree(withCloseBraceDeletedText.ToString());
968Assert.Equal(newText.ToString(), finalText);
982Assert.Equal(newText.ToString(), output);
1428int locationOfInsert = oldText.ToString().IndexOf('0') + 1;
1532int locationOfChange = oldText.ToString().IndexOf("ON", StringComparison.Ordinal), widthOfChange = 2;
1552int locationOfChange = oldText.ToString().IndexOf("const", StringComparison.Ordinal), widthOfChange = 5;
1572int locationOfChange = oldText.ToString().IndexOf("class", StringComparison.Ordinal), widthOfChange = 5;
1595int locationOfChange = oldText.ToString().IndexOf('}'), widthOfChange = 5;
1615int locationOfChange = oldText.ToString().IndexOf('}'), widthOfChange = 5;
1635int locationOfChange = oldText.ToString().IndexOf("fixed", StringComparison.Ordinal), widthOfChange = 5;
1656int locationOfChange = oldText.ToString().IndexOf("@global", StringComparison.Ordinal), widthOfChange = 7;
1688int locationOfChange = oldText.ToString().IndexOf(txtToCmnt, StringComparison.Ordinal), widthOfChange = txtToCmnt.Length;
1713int locationOfChange = oldText.ToString().IndexOf(txtToCmnt, StringComparison.Ordinal), widthOfChange = txtToCmnt.Length;
1740Assert.Equal(parsedTree.GetText().ToString(), incrementalTree.GetText().ToString());
1795Assert.Equal(parsedTree.GetText().ToString(), incrementalTree.GetText().ToString());
1882Assert.Equal(parsedTree.GetText().ToString(), incrementalTree.GetText().ToString());
2367int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2395int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2417int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2468int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2501int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2527int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2552int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2581int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2608int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2632int locationOfChange = oldText.ToString().IndexOf(textToRemove, StringComparison.Ordinal);
2663int locationOfChange = oldText.ToString().IndexOf(txtToCmnt, StringComparison.Ordinal), widthOfChange = txtToCmnt.Length;
2691int locationOfChange = oldText.ToString().IndexOf(txtToCmnt, StringComparison.Ordinal), widthOfChange = txtToCmnt.Length;
2714int locationOfChange = oldText.ToString().IndexOf(txtToCmnt, StringComparison.Ordinal), widthOfChange = txtToCmnt.Length;
2769Assert.Equal(oldText.ToString(), startTree.GetCompilationUnitRoot().ToFullString());
2792newText.ToString());
2822", newText.ToString());
2850", newText.ToString());
2906var fullTree = SyntaxFactory.ParseSyntaxTree(newIText.ToString(), options: newTree.Options);
2920fullTree = SyntaxFactory.ParseSyntaxTree(newIText.ToString(), options: newTree.Options);
2990var fullTree = SyntaxFactory.ParseSyntaxTree(currIText.ToString());
3026var fullTree = SyntaxFactory.ParseSyntaxTree(currIText.ToString());
3202var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3223var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3244var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3265var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3286var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3308var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3332var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3356var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3380var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3404var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3428var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3454var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3479var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3505var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3531var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3549var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3567var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3585var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3599var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3613var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3628var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3665var fullTree = SyntaxFactory.ParseSyntaxTree(text.ToString());
3726Assert.Equal(oldText.ToString(), startTree.GetCompilationUnitRoot().ToFullString());
3735SourceText newText = SourceText.From(token + oldText.ToString());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures (5)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (12)
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (15)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (6)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (10)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
Microsoft.CodeAnalysis.UnitTests (116)
Text\TextChangeTests.cs (101)
34Assert.Equal("World", subText.ToString());
42Assert.Equal("Hello", subText.ToString());
50Assert.Equal("World", subText.ToString());
58Assert.Equal("o W", subText.ToString());
66Assert.Equal("Hello Beautiful World", newText.ToString());
91Assert.Equal("Halo Universe", newText.ToString());
118Assert.Equal("Halo Universe", newText.ToString());
145Assert.Equal("Hello Super Spectacular World", newText.ToString());
157Assert.Equal("Hello Super Vurld", newText.ToString());
171Assert.Equal("Hello Super Vurld", newText.ToString());
183Assert.Equal("HellWorld", newText.ToString());
195Assert.Equal("l Un", subText.ToString());
271Assert.Equal(SourceText.From(changedText.ToString()).Lines, changedText.Lines, new TextLineEqualityComparer());
361Assert.Equal(expected, text.ToString());
381Assert.Equal(expected, text.ToString());
394Assert.Equal("fghijklmno", subtext.ToString());
432Assert.Equal("abcdefghij", newText.Segments[0].ToString());
433Assert.Equal("lmnopqrstuvwxyz", newText.Segments[1].ToString());
445Assert.Equal("abcdefghij*klmnopqrstuvwxyz", textWithSegments.ToString());
448Assert.Equal("abcdefghij", textWithSegments.Segments[0].ToString());
449Assert.Equal("*", textWithSegments.Segments[1].ToString());
450Assert.Equal("klmnopqrstuvwxyz", textWithSegments.Segments[2].ToString());
464Assert.Equal("abcdefghilmnopqrstuvwxyz", textWithFewerSegments.ToString());
469Assert.Equal("abcdefghi", textWithFewerSegments.Segments[0].ToString());
470Assert.Equal("lmnopqrstuvwxyz", textWithFewerSegments.Segments[1].ToString());
495Assert.Equal(a, t.Segments[0].ToString());
496Assert.Equal(b, t.Segments[1].ToString());
508Assert.Equal(a, t.Segments[0].ToString());
509Assert.Equal(b, t.Segments[1].ToString());
510Assert.Equal(new string('c', t.Segments[2].Length), t.Segments[2].ToString());
525Assert.Equal(a, t.Segments[0].ToString());
526Assert.Equal(b, t.Segments[1].ToString());
659Assert.Equal("Hello Cool World", change2.ToString());
676Assert.Equal("0aa4", change1.ToString());
677Assert.Equal("0abba4", change2.ToString());
690Assert.Equal("0aaa2", change1.ToString());
691Assert.Equal("0aabba2", change2.ToString());
704Assert.Equal("0aa4", change1.ToString());
705Assert.Equal("0abb4", change2.ToString());
715Assert.Equal("Heard", change2.ToString());
729Assert.Equal("Hell Bell World", change2.ToString());
743Assert.Equal("Hello Cwazy Vorld", change2.ToString());
759Assert.Equal("0aa1234", change1.ToString());
760Assert.Equal("0bbaa1234", change2.ToString());
772Assert.Equal("0aa4", change1.ToString());
773Assert.Equal("0bbaa4", change2.ToString());
785Assert.Equal("0aa1234", change1.ToString());
786Assert.Equal("0bba1234", change2.ToString());
798Assert.Equal("0aa1234", change1.ToString());
799Assert.Equal("0bb1234", change2.ToString());
811Assert.Equal("0aa1234", change1.ToString());
812Assert.Equal("0bb234", change2.ToString());
825Assert.Equal("0aa4", change1.ToString());
826Assert.Equal("0bba4", change2.ToString());
839Assert.Equal("0aa4", change1.ToString());
840Assert.Equal("0bb", change2.ToString());
849Assert.Equal("Hello World", change2.ToString());
863Assert.Equal("Hello World", change2.ToString());
879Assert.Equal("Hello World", change2.ToString());
894Assert.Equal("Hell World", change1.ToString());
896Assert.Equal("Hello World", change2.ToString());
914Assert.Equal("Hello World", final.ToString());
1012Assert.Equal(originalText.WithChanges(textChanges).ToString(), change2.ToString());
1049Assert.Equal("a234", change1.ToString());
1050Assert.Equal("bb34", change2.ToString());
1053Assert.Equal("bb34", originalText.WithChanges(changes).ToString());
1065Assert.Equal("aa0aa234", change1.ToString());
1066Assert.Equal("baa234", change2.ToString());
1067Assert.Equal(change2.ToString(), original.WithChanges(changes).ToString());
1077Assert.Equal("a01234", change1.ToString());
1078Assert.Equal("bb1234", change2.ToString());
1081Assert.Equal("bb1234", originalText.WithChanges(changes).ToString());
1091Assert.Equal("aa12aa4", change1.ToString());
1092Assert.Equal("bbbaa12aa4", change2.ToString());
1094Assert.Equal("bbbaa12aa4", originalText.WithChanges(changes).ToString());
1104Assert.Equal("a34aaa5", change1.ToString());
1105Assert.Equal("4bbaa5", change2.ToString());
1108Assert.Equal("4bbaa5", originalText.WithChanges(changes).ToString());
1118Assert.Equal("aaaaa12aaaa45aaaaa7", change1.ToString());
1119Assert.Equal("baababbbbbaabbbbba7", change2.ToString());
1122Assert.Equal("baababbbbbaabbbbba7", originalText.WithChanges(changes).ToString());
1132Assert.Equal("a1234", change1.ToString());
1133Assert.Equal("b1b4", change2.ToString());
1136Assert.Equal("b1b4", originalText.WithChanges(changes).ToString());
1146Assert.Equal("aa1234", change1.ToString());
1147Assert.Equal("bab234", change2.ToString());
1150Assert.Equal("bab234", originalText.WithChanges(changes).ToString());
1160Assert.Equal("a2a5", change1.ToString());
1161Assert.Equal("bbb5", change2.ToString());
1164Assert.Equal("bbb5", originalText.WithChanges(changes).ToString());
1174Assert.Equal("46", change1.ToString());
1175Assert.Equal("6", change2.ToString());
1178Assert.Equal("6", originalText.WithChanges(changes).ToString());
1188Assert.Equal("245", change1.ToString());
1189Assert.Equal("5", change2.ToString());
1192Assert.Equal("5", originalText.WithChanges(changes).ToString());
1202Assert.Equal("134", change1.ToString());
1203Assert.Equal("14", change2.ToString());
1206Assert.Equal("14", originalText.WithChanges(changes).ToString());
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (50)
IncrementalParser\IncrementalParser.vb (45)
136Dim newString = newText.ToString()
887Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
908Dim position = oldText.ToString().LastIndexOf("Module", StringComparison.Ordinal)
937Dim position = oldText.ToString().IndexOf("False", StringComparison.Ordinal)
966Dim position = oldText.ToString().LastIndexOf("Module", StringComparison.Ordinal)
990Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal) + str.Length
1011Dim position = oldText.ToString().IndexOf("'Else", StringComparison.Ordinal)
1031Dim position = oldText.ToString().IndexOf("X"c)
1055Dim position = oldText.ToString().Length
1081Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1107Dim position = oldText.ToString().LastIndexOf(str, StringComparison.Ordinal)
1127Dim fulltree = VisualBasicSyntaxTree.ParseText(newIText.ToString())
1172Dim fulltree = VisualBasicSyntaxTree.ParseText(newIText.ToString())
1268Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1292Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1316Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1340Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1363Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1386Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1406Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1426Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1446Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1466Dim position = oldText.ToString().IndexOf(str, StringComparison.Ordinal)
1490Dim position = oldText.ToString().IndexOf("#"c)
1585Dim position = oldText.ToString().IndexOf("&HFFFFFFFFFF:", StringComparison.Ordinal)
1770Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
1797Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
1826Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
1890Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
1923Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
1957Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
1987Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2018Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2050Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2080Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2112Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2214Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2246Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2280Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2306Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2337Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2370Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2407Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2435Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
2469Dim position = oldText.ToString.IndexOf(TextToRemove, StringComparison.Ordinal)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (9)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (32)
VisualStudioMSBuildWorkspaceTests.cs (32)
966Assert.NotEmpty(text.ToString());
991Assert.Empty(text.ToString());
2024Assert.Equal(newText.ToString(), text2.ToString());
2029Assert.Equal(newText.ToString(), textOnDisk);
2067Assert.Equal(newText.ToString(), text2.ToString());
2071Assert.Equal(newText.ToString(), textOnDisk);
2076Assert.Equal(originalText.ToString(), text.ToString());
2103Assert.Equal(originalText.ToString(), text.ToString());
2117var newText = SourceText.From("using System.Diagnostics;\r\n" + text.ToString());
2126Assert.Equal(newText.ToString(), text2.ToString());
2130Assert.Equal(newText.ToString(), textOnDisk);
2144var newText = SourceText.From("New Text In Additional File.\r\n" + text.ToString());
2153Assert.Equal(newText.ToString(), text2.ToString());
2157Assert.Equal(newText.ToString(), textOnDisk);
2179Assert.Equal(newText.ToString(), text2.ToString());
2183Assert.Equal(newText.ToString(), textOnDisk);
2240var newText = "/* new text */\r\n" + text.ToString();
2270var newText = "/* new text */\r\n" + text.ToString();
2354Assert.Contains("Window", text.ToString(), StringComparison.Ordinal);
2372Assert.Contains("public class CSharpClass", documentText.ToString(), StringComparison.Ordinal);
2376Assert.Contains("Window", additionalDocumentText.ToString(), StringComparison.Ordinal);
2834Assert.Equal("//\u201C", text.ToString());
2894Assert.Equal(fileContent, text.ToString());
2907var noEncodingDoc = document.WithText(SourceText.From(text.ToString(), encoding: null));
3247Assert.Equal("root = true", text.ToString());
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (5)
Workspaces\TestWorkspace`1.cs (3)
397text.ToString(), info.Name, info.SourceCodeKind,
422var hostDocument = CreateDocument(text.ToString(), info.Name, id: info.Id, exportProvider: ExportProvider);
446var hostDocument = CreateDocument(text.ToString(), info.Name, id: info.Id, filePath: info.FilePath, folders: info.Folders, exportProvider: ExportProvider);
Microsoft.CodeAnalysis.Workspaces.UnitTests (35)
SolutionTests\SolutionTests.cs (12)
1015Assert.Equal("new text", newSolution1.GetDocument(documentId)!.GetTextSynchronously(CancellationToken.None).ToString());
1037Assert.Equal("new text", newSolution1.GetAdditionalDocument(documentId)!.GetTextSynchronously(CancellationToken.None).ToString());
1059Assert.Equal("new text", newSolution1.GetAnalyzerConfigDocument(documentId)!.GetTextSynchronously(CancellationToken.None).ToString());
3169var newText = solution2.GetDocument(documentId).GetTextAsync().Result.ToString();
3315Assert.Equal(text1, observedText2.ToString());
3335Assert.Equal(text, docText.ToString());
3357Assert.Equal(text, docText.ToString());
3382Assert.Equal(text, docText.ToString());
3531Assert.Equal(expectedText, observedText.ToString());
3562Assert.Equal(expectedText, observedText.ToString());
3921Assert.Equal("", text.ToString());
5748Assert.Equal("// source1", generatedDocuments.Single().GetTextSynchronously(CancellationToken.None).ToString());
Microsoft.DotNet.GenFacades (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
549return document.WithText(SourceText.From(newText.ToString(), newText.Encoding, newText.ChecksumAlgorithm));
Microsoft.Gen.ContextualOptions.Unit.Tests (5)
test\Generators\Shared\RoslynTestUtils.cs (4)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
549return document.WithText(SourceText.From(newText.ToString(), newText.Encoding, newText.ChecksumAlgorithm));
Microsoft.Gen.Logging.Unit.Tests (5)
test\Generators\Shared\RoslynTestUtils.cs (4)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
549return document.WithText(SourceText.From(newText.ToString(), newText.Encoding, newText.ChecksumAlgorithm));
Microsoft.Gen.Metrics.Unit.Tests (6)
test\Generators\Shared\RoslynTestUtils.cs (4)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
549return document.WithText(SourceText.From(newText.ToString(), newText.Encoding, newText.ChecksumAlgorithm));
Microsoft.Gen.MetricsReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
549return document.WithText(SourceText.From(newText.ToString(), newText.Encoding, newText.ChecksumAlgorithm));
Microsoft.ML.AutoML.SourceGenerator (10)
Microsoft.VisualStudio.LanguageServices (7)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.UnitTests (4)
Roslyn.VisualStudio.Next.UnitTests (7)
System.Windows.Forms.Analyzers (1)