MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Architecture.​FabricsVerifier­ExtensionsWith­Referenced­Assembly
Open sandboxFocus

VerifierExtensions.WithReferencedAssembly Method

WithReferencedAssembly(ITypeSetVerifier<ICompilation>, String)

Represents a fluent Metalama.Extensions.Architecture.Fabrics.TypeSetVerifier`1 that allows to validate code using a given assembly referenced by the current compilation. This method can only be used in a ProjectFabric.

Declaration
public static ITypeSetVerifier<IAssembly> WithReferencedAssembly(this ITypeSetVerifier<ICompilation> setVerifier, string assemblyName)
Parameters
Type Name Description
ITypeSetVerifier<ICompilation> setVerifier

The Metalama.Extensions.Architecture.Fabrics.TypeSetVerifier`1 returned by Verify(IProjectAmender).

System.String assemblyName

The name of the assembly, without version and public key.

Returns
Type Description
ITypeSetVerifier<IAssembly>