Skip to content

Commit

Permalink
Add missing HaveElement() occurrence docs (#2217)
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Jun 10, 2023
1 parent 3afd7db commit c6f94ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/_pages/xml.md
Expand Up @@ -21,6 +21,9 @@ xElement.Should().HaveElement("address");
xElement.Should().HaveElementWithNamespace("address", "http://www.example.com/2012/test");

xElement.Should().HaveInnerText("some textanother textmore text");

xElement.Should().HaveElement("settings", Exactly.Once());
xElement.Should().HaveElement("settings", AtLeast.Twice());
```

Those two last assertions also support `XName` parameters:
Expand Down

0 comments on commit c6f94ea

Please sign in to comment.