9

I'm looking for XmlUnit alternatives, since:

  • XmlUnit looks like a dead project: "The current release is XmlUnit .Net 0.4, April 2009";
  • "Please be aware that the .Net code base is not as advanced as its Java counterpart, in particular there is currently no explicit support for namespaces." (that says it all)
  • It's bugged Are there any alternatives to XmlUnit?
  • I don't really like its static configuration: Are there any alternatives to XmlUnit?

How do you test your xml serialization/deserialization?

PS: More details:

  • I'm using NUnit
  • I'm stuck with .NET 2
Community
  • 1
  • 1
Notoriousxl
  • 1,540
  • 1
  • 16
  • 27

1 Answers1

2

I read that you look for a purely NUnit-based solution, but I think it's worth to mention that Gallio/MbUnit provides several interesting assertions for testing XML. More information and examples on the Gallio wiki.

Assert.Xml.AreEqual(
  "<value x='123' y='456'/>", 
  "<VALUE y='456' x='123'></VALUE>", 
  XmlOptions.Loose); // Pass!
Yann Trevin
  • 3,823
  • 1
  • 30
  • 32
  • Yes, I'm using NUnit. But MbUnit's xml assertions seem interesting. For now I'm using Microsoft Xml Diff & Patch's dll, but perhaps I'll reference MbUnit dlls someday... thanks! :) – Notoriousxl Oct 26 '11 at 13:04
  • 1
    Thank you but maybe you should not accept my answer. First it's not for NUnit. But more important, it does not help in getting more answers from other people (just my opinion) – Yann Trevin Oct 26 '11 at 14:24