SpecificationResult.

SpecificationResult(bool, string[], string, FailedSpecification[]) Constructor

Summary

Create result with trace, for single Specification with custom errors.

Syntax

[PublicAPI]
public SpecificationResult(bool overallResult, string[] errors, string trace, params FailedSpecification[] failedSpecifications)

Attributes

Type Description
PublicAPI

Parameters

Name Type Description
overallResult bool Overall result returned by IsSatisfiedBy or IsNotSatisfiedBy method.
errors string[] Custom errors collection, independent of failedSpecifications.
trace string

Trace message.

Should contains short identifier of executed Specifications and relation between them.

failedSpecifications FailedSpecification[]

List of failed Specifications.

For definition of "failed" see FailedSpecification.

Return Value

Type Description
void
GitHub