Enum SnapshotLineEndingMode
- Namespace
- SnapshotAssertions
- Assembly
- SnapshotAssertions.dll
How line-ending differences between actual and expected content are handled during snapshot comparison.
public enum SnapshotLineEndingMode
Fields
IgnoreLineEndings = 3Line endings are removed from both sides entirely; only the line content is compared.
NormalizeToCRLF = 2Both sides are normalized to CRLF before comparison. Windows-leaning.
NormalizeToLF = 1Both sides are normalized to LF before comparison. Cross-platform-safe.
Ordinal = 0No normalization. Bytes are compared as-is.