public void XMLFormat_Equals_Test2() { XMLFormat xml = new XMLFormat(new XMLFormatInitializerTest2()); XMLFormat xml2 = new XMLFormat(); xml2.SetRoot("deo"); xml2.Append(0, new XMLFormat.DirNode { id = 36, name = "sek" }); xml2.Append(0, new XMLFormat.FileNode { id = 121, name = "try" }); xml2.Append(36, new XMLFormat.DirNode { id = 99, name = "uig" }); xml2.Append(36, new XMLFormat.FileNode { id = 2092, name = "qvg" }); xml2.Append(99, new XMLFormat.FileNode { id = 370, name = "xoj" }); Boolean isEqual = xml.Equals(xml2); Assert.True(isEqual); }
public void XMLFormatInitializerTest1() { XMLFormat xml = new XMLFormat(new XMLFormatInitializerTest1()); XMLFormat xml2 = new XMLFormat(); xml2.SetRoot("site"); xml2.Append(0, new XMLFormat.FileNode { id = 12, name = "news" }); Boolean isEqual = xml.Equals(xml2); Assert.True(isEqual); }