Class SnapshotMismatchException

Namespace
XBullet.EasyTesting.Snapshots
Assembly
XBullet.EasyTesting.Snapshots.Core.dll

Thrown when a received snapshot has no approved file or differs from it.

public sealed class SnapshotMismatchException : Exception, ISerializable
Inheritance
SnapshotMismatchException
Implements
Inherited Members

Properties

ActualValue

Gets a compact representation of the actual value at the difference.

public string? ActualValue { get; }

Property Value

string

The received excerpt, or null when unavailable. It may contain sensitive snapshot data.

DiffToolLaunched

Gets whether a diff viewer was started for this mismatch.

public bool DiffToolLaunched { get; }

Property Value

bool

true only when a viewer process was successfully started.

DifferencePath

Gets the JSONPath of the first structural difference, when available.

public string? DifferencePath { get; }

Property Value

string

The first structural JSONPath or text location marker, or null.

ExpectedValue

Gets a compact representation of the expected value at the difference.

public string? ExpectedValue { get; }

Property Value

string

The expected excerpt, or null when unavailable. It may contain sensitive snapshot data.

ReceivedPath

Gets the path containing the newly received snapshot.

public string ReceivedPath { get; }

Property Value

string

The runtime-qualified received-file path written for review.

VerifiedPath

Gets the path of the expected, committed snapshot.

public string VerifiedPath { get; }

Property Value

string

The normalized verified-file path involved in the mismatch.