Class ProtoTestTrace
One test's slice of the run: its outcome, its entries and the artifacts it captured.
public sealed record ProtoTestTrace : IEquatable<ProtoTestTrace>
- Inheritance
-
ProtoTestTrace
- Implements
- Inherited Members
- Extension Methods
Constructors
ProtoTestTrace(string, string, string?, string, DateTimeOffset, TimeSpan, ProtoTraceOutcome, ProtoTraceError?, IReadOnlyList<ProtoTraceEntry>, IReadOnlyList<ProtoTraceArtifact>, IReadOnlyList<ProtoTraceEntity>?, IReadOnlyList<ProtoTraceValue>?, ProtoTraceRecord?)
One test's slice of the run: its outcome, its entries and the artifacts it captured.
public ProtoTestTrace(string TestId, string Name, string? ClassName, string MethodName, DateTimeOffset StartedAtUtc, TimeSpan Duration, ProtoTraceOutcome Outcome, ProtoTraceError? Error, IReadOnlyList<ProtoTraceEntry> Entries, IReadOnlyList<ProtoTraceArtifact> Artifacts, IReadOnlyList<ProtoTraceEntity>? Entities = null, IReadOnlyList<ProtoTraceValue>? Values = null, ProtoTraceRecord? Record = null)
Parameters
TestIdstringNamestringClassNamestringMethodNamestringStartedAtUtcDateTimeOffsetDurationTimeSpanOutcomeProtoTraceOutcomeErrorProtoTraceErrorEntriesIReadOnlyList<ProtoTraceEntry>ArtifactsIReadOnlyList<ProtoTraceArtifact>EntitiesIReadOnlyList<ProtoTraceEntity>ValuesIReadOnlyList<ProtoTraceValue>RecordProtoTraceRecord
Properties
Artifacts
public IReadOnlyList<ProtoTraceArtifact> Artifacts { get; init; }
Property Value
ClassName
public string? ClassName { get; init; }
Property Value
Duration
public TimeSpan Duration { get; init; }
Property Value
Entities
public IReadOnlyList<ProtoTraceEntity>? Entities { get; init; }
Property Value
Entries
public IReadOnlyList<ProtoTraceEntry> Entries { get; init; }
Property Value
Error
public ProtoTraceError? Error { get; init; }
Property Value
MethodName
public string MethodName { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Outcome
public ProtoTraceOutcome Outcome { get; init; }
Property Value
Record
public ProtoTraceRecord? Record { get; init; }
Property Value
StartedAtUtc
public DateTimeOffset StartedAtUtc { get; init; }
Property Value
TestId
public string TestId { get; init; }
Property Value
Values
public IReadOnlyList<ProtoTraceValue>? Values { get; init; }