NegatableValidationSpecification<T>.

CreateNegationTraceMessage(T, bool) Method

Summary

Creates negation trace message based on overall result and candidate content.

Syntax

[PublicAPI]
[NotNull]
protected virtual string CreateNegationTraceMessage(T candidate, bool result)

Remarks

Returns short name of Specification (without namespaces) with Not prefix, by default. Failed result contains +Failed suffix.

Attributes

Type Description
PublicAPI
NotNull

Parameters

Name Type Description
candidate T Verified candidate object.
result bool Overall Specification result.

Return Value

Type Description
string Short negation trace message.
GitHub