diff --git a/src/Unitverse/Helper/VsProjectHelper.cs b/src/Unitverse/Helper/VsProjectHelper.cs index 6dc4414..81be65f 100644 --- a/src/Unitverse/Helper/VsProjectHelper.cs +++ b/src/Unitverse/Helper/VsProjectHelper.cs @@ -193,12 +193,14 @@ public static string GetProjectRootNamespace(Project project) var defaultNamespaceProperty = project.Properties.Item("DefaultNamespace"); - if (defaultNamespaceProperty?.Value == null) + var defaultNamespace = defaultNamespaceProperty?.Value?.ToString(); + + if (string.IsNullOrWhiteSpace(defaultNamespace)) { - return "Testing"; + defaultNamespace = project.Name; } - return defaultNamespaceProperty.Value.ToString(); + return defaultNamespace; } private static IVsHierarchy GetVsHierarchyFromFilepath(string filepath, out uint itemId)