|
From: SUDHAKAR V <v.r...@gm...> - 2010-06-15 22:06:15
|
What is the .Net equivalent code for the below Java code?
*public* *void* testCompareToSkeletonXML() *throws* Exception {
String myControlXML = "<location><street-address>22 any
street</street-address><postcode>XY00 99Z</postcode></location>";
String myTestXML = "<location><street-address>20 east
cheap</street-address><postcode>EC3M 1EB</postcode></location>";
DifferenceListener myDifferenceListener =
*new*IgnoreTextAndAttributeValuesDifferenceListener();
Diff myDiff = *new* Diff(myControlXML, myTestXML);
myDiff.overrideDifferenceListener(myDifferenceListener);
assertTrue("test XML matches control skeleton XML " + myDiff,
myDiff.similar());
}
There is no enough documentation provided for .Net.
I tried adding xmlunit reference and tried to find the DifferenceLinstener
and Diff class which I could not find.
--Regards,
svangeti.
|