public virtual void testInit() { JDFDoc doc = new JDFDoc(ElementName.JDF); JDFNode root = doc.getJDFRoot(); JDFComment cRoot = root.appendComment(); Assert.IsNotNull(cRoot.getAttribute(AttributeName.ID, null, null)); Assert.IsTrue(cRoot.isValid(EnumValidationLevel.Complete)); root.setVersion(JDFElement.EnumVersion.Version_1_2); JDFAuditPool ap = root.getCreateAuditPool(); JDFNotification notif = ap.addNotification(JDFNotification.EnumClass.Information, "Me", null); JDFComment c = notif.appendComment(); c.setText("This element should have no ID attribute"); string id = c.getAttribute(AttributeName.ID, null, null); Assert.IsNull(id); }