Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

Closed Issue: XElementAssertions.HaveElement() throws funny error messages [11881]

$
0
0
XElementAssertions.HaveElement() throws a funny error message (because we [...] message) although I didn't specify a reason.

CodeSnippet:
xml.Element("Root")
.Should().HaveElement("Children");

I get the following error message:

Expected XML element <Root /> to have child element <Children>
because we want to test the failure message,
but no such child element was found.

Viewing all articles
Browse latest Browse all 1402

Trending Articles