Meziantou.Framework.Assertions.Architecture namespace

Classes

NameDescription
ArchitectureAssertThe assertions on the dependencies of the types of an ArchitectureModel, available as Assert.Architecture. Each assertion throws an AssertionException that lists every type that breaks it, with the statements that cause it. To check the names or the shape of types, use Assert.All with the members of TypeElement.
ArchitectureLoadOptionsOptions to load an ArchitectureModel.
ArchitectureModelThe types of a set of assemblies, read from their files with System.Reflection.Metadata: the assemblies are not loaded for execution. The model is immutable, holds no file handle, and is safe to use from several threads, so it can be stored in a static field and shared by the tests.
AssemblyElementAn assembly of the architecture.
AttributeElementAn attribute applied to an assembly, a type, a member or a parameter.
DependencyA use of a type by a type of the architecture, in a declaration or in the code of a method.
EventElementAn event.
FieldElementA field.
MemberElementA member of a type: a method, a constructor, a property, a field or an event.
MemberReferenceA method or a field used by an instruction. The member may be defined outside the architecture.
MethodElementA method, a constructor, or the accessor of a property or an event.
ParameterElementA parameter of a method or a constructor.
PropertyElementA property or an indexer.
TypeElementA type defined in an assembly of the architecture.
TypeElementExtensionsProvides extension methods on collections of TypeElement.
TypeReferenceA type used by the code: in a signature, an attribute, or an instruction. The type may be defined outside the architecture.

Structs

NameDescription
SourceLocationA position in a source file, read from the portable PDB of an assembly.

Enums

NameDescription
DependencyKindSpecifies how a type uses the type it depends on.
ElementAccessibilitySpecifies the declared accessibility of a type or a member.
MemberReferenceKindSpecifies the kind of a MemberReference.
TypeElementKindSpecifies the kind of a TypeElement.
TypeReferenceKindSpecifies the shape of a TypeReference.