equals() public method

public equals ( XMLNode other ) : bool
other XMLNode
return bool
 public void test_XMLNode_equals()
 {
     string xmlstr = "<annotation>\n" + "  <test xmlns=\"http://test.org/\" id=\"test\">test</test>\n" + "</annotation>";
       XMLNode node = new XMLNode();
       XMLNode node1 = XMLNode.convertStringToXMLNode(xmlstr,null);
       assertEquals( false, node.equals(node1) );
       node = null;
       XMLNode node2 = XMLNode.convertStringToXMLNode(xmlstr,null);
       assertEquals( true, node2.equals(node1) );
       node1 = null;
       node2 = null;
 }