public string CreateContent(ClassInformation classInfo, TestConfiguration testConfig) { var cls = _classBuilder.Initialize(classInfo, testConfig.TestFramework) .AppendFields() .AppendSetupMethod() .AppendExamplaryMethod() .Build(); var nameSpace = CreateNamespace(classInfo, testConfig); nameSpace = nameSpace.AddMembers(cls); var syntaxFactory = SyntaxFactory.CompilationUnit(); syntaxFactory = AppendUsings(syntaxFactory, classInfo, testConfig.TestFramework); syntaxFactory = syntaxFactory.AddMembers(nameSpace); var classContent = syntaxFactory .NormalizeWhitespace() .ToFullString(); return(classContent); }