List <IAttributeDescriptor> CacheTypeInfo() { var info = new List <IAttributeDescriptor>(); info.Add(AttributeDescriptor.Make("Namespace", Namespace)); info.Add(AttributeDescriptor.Make("Assembly", Assembly)); info.Add(AttributeDescriptor.Make("Property Bag Type", PropertyBagType.ToString())); info.Add(AttributeDescriptor.Make("Traits", string.Join(" | ", Editor.EnumUtility.EnumerateFlags(TypeTraits)))); info.Add(AttributeDescriptor.Make("Constructable", CanBeConstructed.ToString())); return(info); }
public void PropertyBagType_FromDebugInfo_AreCorrectlyGenerated(Type type, PropertyBagType bagType) { Assert.That(PropertyBagDebugInfoStore.TryGetPropertyBagDetail(type, out var debugInfo), Is.True); Assert.That(debugInfo.PropertyBagType, Is.EqualTo(bagType)); }