Table of Contents

Enum SnapshotTrailingNewline

Namespace
SnapshotAssertions
Assembly
SnapshotAssertions.dll

How the trailing newline at end-of-file is treated during snapshot comparison.

public enum SnapshotTrailingNewline

Fields

Forbidden = 2

The baseline must NOT end with a trailing newline; mismatches fail the comparison.

Optional = 1

A trailing newline on either side is accepted but not required.

Required = 0

The baseline must end with a single trailing newline; mismatches fail the comparison. Default.