protected IncludeRule CreateCppFile(string cppFileName, string cppFile, List <string> attaches, [CallerMemberName] string testName = "") { var includesDir = TestDirectory.CreateSubdirectory("includes"); File.WriteAllText(Path.Combine(includesDir.FullName, cppFileName + ".h"), cppFile); return(new IncludeRule { AttachTypes = attaches, File = cppFileName + ".h", Namespace = testName, }); }