Class ProtoTestResult

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

The final result reported by a test-framework adapter.

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

Constructors

ProtoTestResult(ProtoTraceOutcome, Exception?, ProtoTraceError?)

The final result reported by a test-framework adapter.

public ProtoTestResult(ProtoTraceOutcome Outcome, Exception? Exception = null, ProtoTraceError? Error = null)

Parameters

Outcome ProtoTraceOutcome
Exception Exception
Error ProtoTraceError

Properties

Error

public ProtoTraceError? Error { get; init; }

Property Value

ProtoTraceError

Exception

public Exception? Exception { get; init; }

Property Value

Exception

Outcome

public ProtoTraceOutcome Outcome { get; init; }

Property Value

ProtoTraceOutcome

Passed

public static ProtoTestResult Passed { get; }

Property Value

ProtoTestResult

Skipped

public static ProtoTestResult Skipped { get; }

Property Value

ProtoTestResult

Unknown

public static ProtoTestResult Unknown { get; }

Property Value

ProtoTestResult

Methods

Cancelled(Exception?)

public static ProtoTestResult Cancelled(Exception? exception = null)

Parameters

exception Exception

Returns

ProtoTestResult

Failed(ProtoTraceError)

public static ProtoTestResult Failed(ProtoTraceError error)

Parameters

error ProtoTraceError

Returns

ProtoTestResult

Failed(Exception)

public static ProtoTestResult Failed(Exception exception)

Parameters

exception Exception

Returns

ProtoTestResult