Interface IProtoRunGate
Evaluates the evidence a run collected and can fail the run. Gates run once the suite has finished, before reports are written, so a failed gate still produces its report.
public interface IProtoRunGate
- Extension Methods
Properties
Name
The gate's name: it identifies the verdict in the run report and in a failure.
string Name { get; }
Property Value
Methods
Evaluate(ProtoRunGateContext)
Evaluates the run's evidence once the suite has finished. Returning Failed(string, IReadOnlyList<string>?) fails the run; every other verdict is recorded and does not.
ProtoRunGateResult Evaluate(ProtoRunGateContext context)
Parameters
contextProtoRunGateContext