示例#1
0
        public virtual void testModifyNode()
        {
            JDFDoc    doc = new JDFDoc(ElementName.JMF);
            JDFJMF    jmf = doc.getJMFRoot();
            JDFSignal sig = (JDFSignal)jmf.appendMessageElement(EnumFamily.Signal,EnumType.ModifyNode);
            JDFModifyNodeCmdParams mnp = sig.appendModifyNodeCmdParams();

            Assert.IsNotNull(mnp);
            JDFModifyNodeCmdParams mnp2 = sig.getModifyNodeCmdParams();

            Assert.AreEqual(mnp,mnp2);
            mnp2 = sig.getCreateModifyNodeCmdParams();
            Assert.AreEqual(mnp,mnp2);
            try
            {
                sig.appendModifyNodeCmdParams();
                Assert.Fail("oops");
            }
            catch (JDFException)
            {
                // nop
            }
        }