Table of Contents

Enum SnapshotMatchOutcome

Namespace
SnapshotAssertions
Assembly
SnapshotAssertions.dll

The classification of a snapshot comparison outcome.

public enum SnapshotMatchOutcome

Fields

Accepted = 3

The actual content did not match, but accept-mode was active (SNAPSHOT_ACCEPT=1 in a non-CI environment), so the actual content was written over the expected baseline and the comparison treats this as a pass.

Matched = 0

Actual content matched the expected baseline byte-for-byte (after applicable option-driven normalization).

Mismatched = 1

Actual content did not match the expected baseline. Diff and paths are available on the result.

NoBaseline = 2

The expected baseline file does not exist. The first run after introducing a snapshot test produces this outcome; the actual content is written next to where the expected file would be so the user can inspect and accept it.