23 references to GetHeaderText
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (23)
Structure\StructureTaggerTests.cs (23)
72Assert.Equal("namespace MyNamespace", GetHeaderText(namespaceTag));
79Assert.Equal("#region MyRegion", GetHeaderText(regionTag));
86Assert.Equal("public class MyClass", GetHeaderText(classTag));
93Assert.Equal("static void Main(string[] args)", GetHeaderText(methodTag));
100Assert.Equal("if (false)", GetHeaderText(ifTag));
137Assert.Equal("using ", GetHeaderText(importsTag));
143Assert.Equal("public class Bar", GetHeaderText(classTag));
183Assert.Equal("/// <summary>", GetHeaderText(commentsTag));
189Assert.Equal("public class Bar", GetHeaderText(classTag));
227Assert.Equal("namespace Foo", GetHeaderText(namespaceTag));
233Assert.Equal("using ", GetHeaderText(importsTag));
239Assert.Equal("public class Bar", GetHeaderText(classTag));
280Assert.Equal("Namespace MyNamespace", GetHeaderText(namespaceTag));
287Assert.Equal(@"#Region ""MyRegion""", GetHeaderText(regionTag));
294Assert.Equal("Module M", GetHeaderText(moduleTag));
301Assert.Equal("Sub Main(args As String())", GetHeaderText(methodTag));
308Assert.Equal("If False Then", GetHeaderText(ifTag));
347Assert.Equal("Module Program", GetHeaderText(programTag));
352Assert.Equal("Sub Main(args As String())", GetHeaderText(mainTag));
357Assert.Equal("If str.Contains(\"foo\") Then", GetHeaderText(IfTag));
380Assert.Equal("public class MyClass", GetHeaderText(programTag));
385Assert.Equal("public void MyMethod()", GetHeaderText(mainTag));
390Assert.Equal("x =>", GetHeaderText(IfTag));