AssertionMessageFormatter Class

Provides methods for formatting snapshot comparison error messages.

public abstract class AssertionMessageFormatter

Constructors

NameDescription
AssertionMessageFormatter()

AssertionMessageFormatter()

protected AssertionMessageFormatter()

No documentation is available.

Methods

NameDescription
FormatMessage(string?, string?)Formats an error message showing the difference between expected and actual snapshots.

FormatMessage(string?, string?)

Formats an error message showing the difference between expected and actual snapshots.

public abstract string FormatMessage(string? expected, string? actual)

Parameters

expected string?
The expected snapshot value.
actual string?
The actual snapshot value.

Returns

string A formatted error message suitable for display in test results.