NotSpecification<T>.

IsSatisfiedBy(T, SpecificationResult) Method

Summary

Result negation of Specifications passed in constructor.

Syntax

[PublicAPI]
public bool IsSatisfiedBy(T candidate, out SpecificationResult result)

Attributes

Type Description
PublicAPI

Parameters

Name Type Description
candidate T Candidate object to verification.
result SpecificationResult Contains validation summary of Specification negation - errors, types of all executed Specifications and trace message in the style of Boole algebra.

Return Value

Type Description
bool Overall result as negation of base Specification.

Exceptions

Type Description
System.InvalidOperationException Thrown when cannot generate negation result.
GitHub