SpecificationResult.

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

Summary

Create result for single Specification with custom errors.

Syntax

[PublicAPI]
public SpecificationResult(bool overallResult, string[] errors, 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.
failedSpecifications FailedSpecification[]

List of failed Specifications.

For definition of "failed" see FailedSpecification.

Return Value

Type Description
void
GitHub