Class ProtoTraceSectionItem

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

One item of a fields, checks or diff section. Fields use Value; checks use Value and Detail with a Tone; diff uses Label as the property path with expected in Value and actual in Detail.

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

Constructors

ProtoTraceSectionItem(string, string?, string?, ProtoTraceSectionTone)

One item of a fields, checks or diff section. Fields use Value; checks use Value and Detail with a Tone; diff uses Label as the property path with expected in Value and actual in Detail.

public ProtoTraceSectionItem(string Label, string? Value = null, string? Detail = null, ProtoTraceSectionTone Tone = ProtoTraceSectionTone.Neutral)

Parameters

Label string
Value string
Detail string
Tone ProtoTraceSectionTone

Properties

Detail

public string? Detail { get; init; }

Property Value

string

Label

public string Label { get; init; }

Property Value

string

Tone

public ProtoTraceSectionTone Tone { get; init; }

Property Value

ProtoTraceSectionTone

Value

public string? Value { get; init; }

Property Value

string