public virtual void testRemoveAttributeStringString() { JDFParser p = new JDFParser(); JDFDoc jdfDoc = p.parseFile(sm_dirTestData + "emptyAuthorAttribute.jdf"); JDFElement root = jdfDoc.getJDFRoot(); KElement kElem = root.getChildByTagName("Created", "", 0, null, false, true); bool before = kElem.hasAttribute("Author", "", false); Assert.IsTrue(before, "The Attribute 'Author' does not exist"); if (before) { kElem.removeAttribute("Author", ""); bool after = kElem.hasAttribute("Author", "", false); Assert.IsFalse(after, "The Attribute 'Author' was not removed"); } }