SpecificationResult.

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

Summary

Create result for combined multiple Specifications with custom errors.

Syntax

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

Attributes

Type Description
PublicAPI

Parameters

Name Type Description
totalSpecificationsCount int Count of all executed Specifications in chain.
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