private static string[] MakeTestClassNamespaceParts([NotNull] IClassDeclaration classDeclaration, [NotNull] IProject testProject) { var currentProject = classDeclaration.GetProject(); if (currentProject == null) { return(null); } var typeElement = classDeclaration.DeclaredElement; if (typeElement == null) { return(null); } var relativeTypeNamespace = TrimDefaultProjectNamespace(currentProject, typeElement.GetContainingNamespace().QualifiedName); var splittedDefaultNamespace = StringUtil.FullySplitFQName(testProject.GetDefaultNamespace()); return(splittedDefaultNamespace.Concat(relativeTypeNamespace).ToArray()); }