NegatableValidationSpecification<T>.

CreateNegationResult(T, bool) Method

Summary

Creates SpecificationResult validation object for negation.

Syntax

[PublicAPI]
[NotNull]
protected virtual SpecificationResult CreateNegationResult(T candidate, bool isSatisfiedBy)

Remarks

Result contains:
  • negation trace message
  • FailedSpecification
  • negation error message
  • parameters

Attributes

Type Description
PublicAPI
NotNull

Parameters

Name Type Description
candidate T Candidate object to verification.
isSatisfiedBy bool Overall result is Specification satisfied by candidate.

Return Value

Type Description
SpecificationResult Validation object based on overall result and candidate content.
GitHub