Tools for analyzing and comparing text, including line ending detection and customizable string comparers for multi-line content.
$ dotnet add package ShadowKit.TextShadowKit.Text provides tools for analyzing and comparing text, with a focus on testing and utility scenarios involving multi-line strings.
DetectLineEnding
Detects the type of line endings in a given text. Supports detection of \n, \r\n, and \r.
StringComparerBuilder
A builder for creating customized EqualityComparer<string> instances with extended comparison options:
These tools are ideal for unit tests that assert string output, especially when consistent formatting cannot be guaranteed.
dotnet add package ShadowKit.Text