Are there any XML statements for NUnit?

Does NUnit (possibly using third-party libraries) support intelligent XML data comparison?

Let's say we need to compare two xml files - the simplest way would be to compare the contents of xml using string comparison without taking into account random situations, but this will only work in trivial cases.

Is there any library around which xml comparison can be simplified. some kind of XmlAssert?

The functionality I'm doing is "having two xml files, comparing these nodes (because they are important), and ignoring the rest."

Related questions

  • What is the best way to compare XML files for equality?
  • How would you compare two XML documents?
+6
xml unit-testing nunit
Aug 24 '10 at 0:11
source share
3 answers

Work on porting XMLUnit to .Net. I just used the Java version and don’t know how full the port is. Perhaps he is not ready for prime time ...

+1
Aug 24 '10 at 0:26
source share

I searched the same tool for .NET and found this: Jolt.NET . Go to try it yourself.

+1
May 30 '11 at 11:16
source share

I did not use it myself at this moment, but fluentassertions.com has a library addon for NUnit and other testing structures that allows this type of statement. May be helpful to someone.

xDocument.Should (). EleElement ("child"). What.Should (). BeOfType (). And.HaveAttribute ("attr", "1");

0
Aug 10 '15 at 20:14
source share



All Articles