Exemplo n.º 1
0
        public void test_XMLNode_getIndex()
        {
            string  xmlstr = "<annotation>\n" + "  <test xmlns=\"http://test.org/\" id=\"test\">test</test>\n" + "</annotation>";
            XMLNode node   = new XMLNode();

            assertTrue(node.getIndex("test") == -1);
            node = null;
            node = XMLNode.convertStringToXMLNode(xmlstr, null);
            assertTrue(node.getIndex("test") == 0);
            node = null;
        }