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