void AddClassToCompilationUnit(string namespaceName, string className) { var classHelper = new ClassHelper(); classHelper.CreatePublicClass(className); classHelper.AddNamespaceUsingScopeToClass(namespaceName); classHelper.AddClassNamespace(namespaceName); compilationUnitHelper.AddClass(classHelper.Class); }
void AddClassesToReparsedCompilationUnit(params ClassHelper[] classHelpers) { var compilationUnitHelper = new CompilationUnitHelper(); foreach (ClassHelper helper in classHelpers) { compilationUnitHelper.AddClass(helper.Class); } documentView.Stub(d => d.Parse()).Return(compilationUnitHelper.CompilationUnit); }