FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

Verify.DiffPlex/src/nuget.md at main · VerifyTests/Verify.DiffPlex · GitHub

Latest commit

 

History

History
40 lines (23 loc) · 2.37 KB

File metadata and controls

40 lines (23 loc) · 2.37 KB

Documentation

Extends Verify to allow comparison of text via DiffPlex.

See Milestones for release notes.

Deprecated

Verify now shows a text diff in the exception message by default, using DiffEngine's TextDiff, so this package is no longer required. See Text Diff Format.

To migrate, remove the Verify.DiffPlex package and:

Verify.DiffPlex Verify
VerifyDiffPlex.Initialize() Remove. Compact is the default.
VerifyDiffPlex.Initialize(OutputType.Full) VerifierSettings.UseTextDiffFormat(TextDiffFormat.Full)
VerifyDiffPlex.Initialize(OutputType.Compact) Remove. Compact is the default.
VerifyDiffPlex.Initialize(OutputType.Minimal) VerifierSettings.UseTextDiffFormat(TextDiffFormat.Minimal)
settings.UseDiffPlex() Remove. The format can only be set globally.

Differences from Verify.DiffPlex:

  • Whitespace and case count. Verify.DiffPlex ignored whitespace, so a failure caused only by whitespace showed no changed lines.
  • Only trailing line breaks are trimmed from the diff, not trailing spaces.
  • A string comparer's message still takes precedence over the diff.

Sponsors

Entity Framework Extensions

Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.

Developed using JetBrains IDEs


Back | FazBrowse Home | New Git URL