Enum SnapshotMatchOutcome
- Namespace
- SnapshotAssertions
- Assembly
- SnapshotAssertions.dll
The classification of a snapshot comparison outcome.
public enum SnapshotMatchOutcome
Fields
Accepted = 3The actual content did not match, but accept-mode was active (
SNAPSHOT_ACCEPT=1in a non-CI environment), so the actual content was written over the expected baseline and the comparison treats this as a pass.Matched = 0Actual content matched the expected baseline byte-for-byte (after applicable option-driven normalization).
Mismatched = 1Actual content did not match the expected baseline. Diff and paths are available on the result.
NoBaseline = 2The 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.