lundi 14 septembre 2020

Compare attributenames and elementnames of an xml document via Fluent Assertions

I have to write a test which compares attributenames and elementnames of two xml documents. The values should be ignored.

The test should pass if I would compare these two files:

<person age="26">
  <firstname>Anna</firstname>
  <lastname>Smith</lastname>
</person> 

<person age="25">
  <firstname>Peter</firstname>
  <lastname>Miller</lastname>
</person> 

Is there an elegant way to do this with Fluent Assertions?

Aucun commentaire:

Enregistrer un commentaire