public void StructureWalker_GetStructure_Success_GetsInterface() { var programText = @" namespace TestCompilation { public interface IProgram { } }"; CommonAsserts.AssertGetStructureOfType <InterfaceDeclarationSyntax>( programText, StructureType.Interface, "TestCompilation", "IProgram"); }
public void StructureWalker_GetStructure_Success_GetsEnum() { var programText = @" namespace TestCompilation { public enum Program { } }"; CommonAsserts.AssertGetStructureOfType <EnumDeclarationSyntax>( programText, StructureType.Enum, "TestCompilation", "Program"); }
public void StructureWalker_GetStructure_Success_GetsClass() { var programText = @" namespace TestCompilation { public class Program { } }"; CommonAsserts.AssertGetStructureOfType <ClassDeclarationSyntax>( programText, StructureType.Class, "TestCompilation", "Program"); }