示例#1
0
        public void QualifiedNames(string qualifiedName, string moduleName, string typeName, ObjectType objectType)
        {
            TypeNames.DeconstructQualifiedName(qualifiedName, out var parts);
            parts.ModuleName.Should().Be(moduleName);
            switch (objectType)
            {
            case ObjectType.Instance:
            case ObjectType.Type:
                parts.MemberNames[0].Should().Be(typeName);
                break;

            default:
                parts.MemberNames.Should().BeEmpty();
                break;
            }
            parts.ObjectType.Should().Be(objectType);
        }