ValidationSpecification<T>.

CreateTraceMessage(T, bool) Method

Summary

Creates trace message based on overall result and candidate content.

Syntax

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

Remarks

Returns short name of Specification (without namespaces) 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 trace message.
GitHub