10 references to GetText
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (10)
CSharp\CSharpGoToDefinition.cs (2)
97Assert.Equal(expected: "partial class /*Marker*/ PartialClass { }", actual: reference.GetText()); 103Assert.Equal(expected: "partial class PartialClass { int i = 0; }", actual: reference.GetText());
CSharp\CSharpSourceGenerators.cs (3)
105Assert.Equal(expected: "/// <summary><see cref=\"HelloWorld\" /> is a simple class to fetch the classic message.</summary>", actual: reference.GetText()); 111Assert.Equal(expected: "internal class HelloWorld", actual: reference.GetText()); 117Assert.Equal(expected: "Console.WriteLine(" + HelloWorldGenerator.GeneratedEnglishClassName + ".GetMessage());", actual: reference.GetText());
InProcess\ErrorListInProcess.cs (1)
116var text = item.GetText() ?? "<unknown>";
VisualBasic\BasicFindReferences.cs (4)
49Assert.Equal(expected: "Dim local = 1", actual: reference.GetText()); 55Assert.Equal(expected: "Console.WriteLine(local)", actual: reference.GetText()); 92Assert.Equal(expected: "Public Shared Alpha As Int32", actual: reference.GetText()); 98Assert.Equal(expected: "Console.WriteLine(Program.Alpha)", actual: reference.GetText());