private static MemberDeclarationSyntax CreateValidDeclaration() { CSharpSyntaxTree tree = (CSharpSyntaxTree)CSharpSyntaxTree.ParseText("class Test { }"); MemberDeclarationSyntax decl = RoslynUtilities.ParseNode <ClassDeclarationSyntax>(tree) !; return(decl); }