Notoriousxl
Notoriousxl

Reputation: 1550

XML Unit testing: XmlUnit alternatives for .NET?

I'm looking for XmlUnit alternatives, since:

How do you test your xml serialization/deserialization?

PS: More details:

Upvotes: 9

Views: 1276

Answers (1)

Yann Trevin
Yann Trevin

Reputation: 3823

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!

Upvotes: 2

Related Questions