Class ProtoTestResult
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
OutcomeProtoTraceOutcomeExceptionExceptionErrorProtoTraceError
Properties
Error
public ProtoTraceError? Error { get; init; }
Property Value
Exception
public Exception? Exception { get; init; }
Property Value
Outcome
public ProtoTraceOutcome Outcome { get; init; }
Property Value
Passed
public static ProtoTestResult Passed { get; }
Property Value
Skipped
public static ProtoTestResult Skipped { get; }
Property Value
Unknown
public static ProtoTestResult Unknown { get; }
Property Value
Methods
Cancelled(Exception?)
public static ProtoTestResult Cancelled(Exception? exception = null)
Parameters
exceptionException
Returns
Failed(ProtoTraceError)
public static ProtoTestResult Failed(ProtoTraceError error)
Parameters
errorProtoTraceError
Returns
Failed(Exception)
public static ProtoTestResult Failed(Exception exception)
Parameters
exceptionException