Class ProtoShapeAssertionContext

Namespace
ProtoTest.Json
Assembly
ProtoTest.Json.dll

The context of one traced shape assertion: where it records, under which parent, with which extra attributes, and whether the expected shape is captured as an attachment.

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

Constructors

ProtoShapeAssertionContext(ProtoExecutionContext?, string, string, string?, IReadOnlyDictionary<string, string?>?, bool, string?, string?)

The context of one traced shape assertion: where it records, under which parent, with which extra attributes, and whether the expected shape is captured as an attachment.

public ProtoShapeAssertionContext(ProtoExecutionContext? Execution, string Source, string Title, string? ParentOperationId = null, IReadOnlyDictionary<string, string?>? ExtraAttributes = null, bool CaptureExpectedShape = false, string? AttachmentName = null, string? AttachmentDescription = null)

Parameters

Execution ProtoExecutionContext
Source string
Title string
ParentOperationId string
ExtraAttributes IReadOnlyDictionary<string, string>
CaptureExpectedShape bool
AttachmentName string
AttachmentDescription string

Properties

AttachmentDescription

public string? AttachmentDescription { get; init; }

Property Value

string

AttachmentName

public string? AttachmentName { get; init; }

Property Value

string

CaptureExpectedShape

public bool CaptureExpectedShape { get; init; }

Property Value

bool

Execution

public ProtoExecutionContext? Execution { get; init; }

Property Value

ProtoExecutionContext

ExtraAttributes

public IReadOnlyDictionary<string, string?>? ExtraAttributes { get; init; }

Property Value

IReadOnlyDictionary<string, string>

ParentOperationId

public string? ParentOperationId { get; init; }

Property Value

string

Source

public string Source { get; init; }

Property Value

string

Title

public string Title { get; init; }

Property Value

string