You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library makes it possible to compare a AngleSharp _control_`INodeList` and a _test_`INodeList` and get a list of`IDiff` differences between them.
11
+
AngleSharp Diffing makes it possible to compare AngleSharp _control_nodes and _test_nodes and get a list of differences between them.
5
12
6
13
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.
7
14
8
15
**Differences:** There are three types off `IDiff` differences, that the library can return.
9
16
10
-
-`Diff`/`AttrDiff`: Represents a difference between a control and test node or a control and test attribute.
11
-
-`MissingDiff`/`MissingAttrDiff`: Represents a difference where a control node or control attribute was expected to exist, but was not found in the test nodes tree.
12
-
-`UnexpectedDiff`/`UnexpectedAttrDiff`: Represents a difference where a test node or test attribute was unexpectedly found in the test nodes tree, but did not have a match in the control nodes tree.
17
+
-`NodeDiff`/`AttrDiff`: Represents a difference between a control and test node or a control and test attribute.
18
+
-`MissingNodeDiff`/`MissingAttrDiff`: Represents a difference where a control node or control attribute was expected to exist, but was not found in the test nodes tree.
19
+
-`UnexpectedNodeDiff`/`UnexpectedAttrDiff`: Represents a difference where a test node or test attribute was unexpectedly found in the test nodes tree, but did not have a match in the control nodes tree.
13
20
14
21
# Usage
15
22
To find the differences between a control HTML fragment and a test HTML fragment, using the default options, the easiest way is to use the `DiffBuilder` class, like so:
0 commit comments