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
Copy file name to clipboardExpand all lines: README.md
+5-24Lines changed: 5 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,30 +14,11 @@ AngleSharp Diffing makes it possible to compare AngleSharp _control_ nodes and _
14
14
15
15
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.
16
16
17
-
**Differences:** There are three types off `IDiff` differences, that the library can return.
18
-
19
-
-`NodeDiff`/`AttrDiff`: Represents a difference between a control and test node or a control and test attribute.
20
-
-`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.
21
-
-`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.
22
-
23
-
# Usage
24
-
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:
25
-
26
-
```csharp
27
-
varcontrolHtml="<p>Hello World</p>";
28
-
vartestHtml="<p>World, I say hello</p>";
29
-
vardiffs=DiffBuilder
30
-
.Compare(control)
31
-
.WithTest(test)
32
-
.Build();
33
-
```
34
-
35
-
Read more about the available options on the [Options](/docs/Options.md) page.
0 commit comments