public string GetDifferingTypeFullname(CodeTypeDeclaration inputType, string testNamespacePart)
{
string codeNs = inputType.Name;
var indexcodeNs = inputType.Name.LastIndexOf('.');
if (indexcodeNs > 0)
{
codeNs = inputType.Name.Substring(0, indexcodeNs);
}
var combined = codeNs;
var splitter = codeNs.Split(new[] { this.ShortestNamespace }, StringSplitOptions.RemoveEmptyEntries);
if (splitter.Length == 0)
{
combined = testNamespacePart;
}
else if (splitter.Length == 1)
{
combined = testNamespacePart + splitter[0];
}
return combined;
}