370d44b6a6
* Ensure that the correct diff is returned. * Use records. * Move kind to beginning of text. * Fix compilation error and test for custom diff. * Update src/AngleSharp.Diffing/Core/CompareResult.cs Co-authored-by: Egil Hansen <egil@assimilated.dk> * Update src/AngleSharp.Diffing/Core/Comparison.cs Co-authored-by: Egil Hansen <egil@assimilated.dk> * Update src/AngleSharp.Diffing/Core/AttributeComparison.cs Co-authored-by: Egil Hansen <egil@assimilated.dk> * 1. Rename CompareResultDecision 2. Move method inside type. * Rename method. * Get rid of StylesOrder * More records. * refactor: move IsExternalInit to folder matching namespace * add comment to explain use of ReferenceEquals * Move types into two files * simplify attrdiff object hierarchi * remove diff type check * clean up using statements * refactor: IsSameOrSkip as property * refactor: normalize tests * feat: add CommentComparer tests * nodes do not have different closing tags, elements do, so switch to using ElementDiff when comparing elements * fix: override ComparisonSource.ToString for better output * fix: use unspecified when no diff is returned * override ToString in AttributeComparisonSource * bump version number --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> |
||
---|---|---|
.github | ||
src | ||
tools | ||
.gitattributes | ||
.gitignore | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
build.cake | ||
build.ps1 | ||
build.sh | ||
header.png | ||
logo.png |
README.md
AngleSharp Diffing - A diff/compare library for AngleSharp
AngleSharp Diffing makes it possible to compare AngleSharp control nodes and test nodes and get a list of differences between them.
The control nodes represents the expected HTML tree, i.e. how the nodes are expected to look, and the test nodes represents the nodes that should be compared to the control nodes.
Documentation:
Acknowledgments
- Florian Rappl from the AngleSharp team for providing ideas, input and sample code for working with AngleSharp.
- XMLUnit has been a great inspiration for creating this library.