Class ContractAssertion

Namespace
Kuestenlogik.Bowire.Contracts
Assembly
Kuestenlogik.Bowire.Contracts.dll

A single contract assertion (status match or structural body match).

public sealed class ContractAssertion
Inheritance
ContractAssertion
Inherited Members

Constructors

ContractAssertion()

public ContractAssertion()

Properties

ActualText

Actual value / body (may be truncated for display).

public string? ActualText { get; set; }

Property Value

string

Error

The shape diff or mismatch detail when it failed.

public string? Error { get; set; }

Property Value

string

Expected

Expected value / shape (may be truncated for display).

public string? Expected { get; set; }

Property Value

string

Op

The comparison: eq (status) or matches-shape (body).

public string Op { get; set; }

Property Value

string

Passed

Whether the assertion held.

public bool Passed { get; set; }

Property Value

bool

Path

What was checked: status or body.

public string Path { get; set; }

Property Value

string