XML 单元测试:.NET 的 XmlUnit 替代品?
我正在寻找 XmlUnit 替代品,因为:
- XmlUnit 看起来像一个死项目:“当前版本是 XmlUnit .Net 0.4,2009 年 4 月”;
- “请注意,.Net 代码库并不像其 Java 代码库那么先进,特别是目前没有对命名空间的明确支持。”(这说明了一切)
- 它有 bug XmlUnit 有替代品吗?
- 我不太喜欢它的静态配置:XmlUnit 有替代品吗?
如何测试 xml 序列化/反序列化?
PS:更多详细信息:
- 我正在使用 NUnit
- 我坚持使用 .NET 2
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我读到您正在寻找纯粹基于 NUnit 的解决方案,但我认为值得一提的是 Gallio/MbUnit 提供几个有趣的用于测试 XML 的断言。有关更多信息和示例,请访问 Gallio wiki。
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.