Is there an AssertEquals for testing XML files?
For Java, you should checkout XMLUnit. And I've just noticed that it comes with a .NET version too! Here's a sample of the Java version:
String myControlXML = "<msg><uuid>0x00435A8C</uuid></msg>";String myTestXML = "<msg><localId>2376</localId></msg>";assertXMLNotEqual(myControlXML, myTestXML);
You can try using the XmlDiffPatch.dll
to do that. Go to http://msdn.microsoft.com/en-us/xml/bb190622.aspx, download "XML Diff and Patch", and add the reference to the DLL in your project. I never used it in actual code, but you can try the tool XmlDiff.Exe
that comes bundled to see if it fits your needs.