static void areEquivalent(IIdentity actual, IdentityCategories expectedCategory, string expectedName, IQualified expectedQualified, int expectedOrder) { actual.Category.Is(expectedCategory); actual.Name.Is(expectedName); actual.From.IsSameReferenceAs(expectedQualified); actual.Order.Is(expectedOrder); }
public IdentityElement(QualifiedElement from, ScopeCategories scope, IdentityCategories category, string name) : base(from) { if (!category.IsDefined()) { throw new ArgumentException($"{nameof(category)}:{category} is unexpected value"); } if (!scope.IsDefined()) { throw new ArgumentException($"{nameof(scope)}:{scope} is unexpected value."); } Category = category; Name = name; Scope = scope; }
static void GenerateRecord(string filepath, ScopeCategories scope, IdentityCategories entityCategory, int depth, string name, bool isUnsafe, bool isPartial, bool isStatic, bool isAbstract, bool isSealed, string fullQualified, string parent, StreamWriter writer) {