public virtual void testAppendValidElement() { JDFDoc doc = new JDFDoc(ElementName.JMF); JDFJMF jmf = doc.getJMFRoot(); JDFSignal sig = (JDFSignal)jmf.appendMessageElement(EnumFamily.Signal,EnumType.UpdateJDF); Assert.IsNotNull(sig.appendValidElement(ElementName.UPDATEJDFCMDPARAMS,null)); }
public virtual void testGetInvalidAttributes() { JDFDoc doc = new JDFDoc(ElementName.JMF); JDFJMF jmf = doc.getJMFRoot(); JDFSignal sig = (JDFSignal)jmf.appendMessageElement(EnumFamily.Signal,EnumType.UpdateJDF); Assert.IsNotNull(sig.appendValidElement(ElementName.UPDATEJDFCMDPARAMS,null)); Assert.IsFalse(sig.getInvalidAttributes(EnumValidationLevel.Complete,true,999).Contains(AttributeName.XSITYPE)); sig.setAttribute("Type",EnumType.AbortQueueEntry.getName()); Assert.IsTrue(sig.getInvalidAttributes(EnumValidationLevel.Complete,true,999).Contains(AttributeName.XSITYPE)); }