Class ProtoRunGateResult

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

The verdict of one Run gate.

public sealed record ProtoRunGateResult : IEquatable<ProtoRunGateResult>
Inheritance
ProtoRunGateResult
Implements
Inherited Members
Extension Methods

Constructors

ProtoRunGateResult(ProtoRunGateOutcome, string?, IReadOnlyList<string>?)

The verdict of one Run gate.

public ProtoRunGateResult(ProtoRunGateOutcome Outcome, string? Message = null, IReadOnlyList<string>? Details = null)

Parameters

Outcome ProtoRunGateOutcome
Message string
Details IReadOnlyList<string>

Properties

Details

public IReadOnlyList<string>? Details { get; init; }

Property Value

IReadOnlyList<string>

Message

public string? Message { get; init; }

Property Value

string

Outcome

public ProtoRunGateOutcome Outcome { get; init; }

Property Value

ProtoRunGateOutcome

Methods

Failed(string, IReadOnlyList<string>?)

public static ProtoRunGateResult Failed(string message, IReadOnlyList<string>? details = null)

Parameters

message string
details IReadOnlyList<string>

Returns

ProtoRunGateResult

Passed(string?)

public static ProtoRunGateResult Passed(string? message = null)

Parameters

message string

Returns

ProtoRunGateResult

Skipped(string?)

public static ProtoRunGateResult Skipped(string? message = null)

Parameters

message string

Returns

ProtoRunGateResult

Warning(string, IReadOnlyList<string>?)

A gate that reports a problem without failing the run.

public static ProtoRunGateResult Warning(string message, IReadOnlyList<string>? details = null)

Parameters

message string
details IReadOnlyList<string>

Returns

ProtoRunGateResult