Exemplo n.º 1
0
        public virtual void testSenderID()
        {
            JDFDoc     doc     = new JDFDoc(ElementName.JMF);
            JDFJMF     jmf     = doc.getJMFRoot();
            JDFCommand command = (JDFCommand)jmf.appendMessageElement(EnumFamily.Command,EnumType.UpdateJDF);

            Assert.AreEqual(command.getSenderID(),jmf.getSenderID());
            command.setSenderID("foo:bar");
            Assert.AreEqual("foo:bar",command.getSenderID());
        }
Exemplo n.º 2
0
        public virtual void testGetDeviceID()
        {
            JDFJMF jmf = (JDFJMF) new JDFDoc("JMF").getRoot();

            jmf.setSenderID("S1");
            di = jmf.appendSignal(EnumType.Status).appendDeviceInfo();
            Assert.AreEqual(jmf.getSenderID(), di.getDeviceID());
            di.appendDevice().setDeviceID("dd");
            Assert.AreEqual("dd", di.getDeviceID());
            di.setDeviceID("da");
            Assert.AreEqual("da", di.getDeviceID());
        }