예제 #1
0
        public virtual void testInitMaxVersion()
        {
            JDFElement.setDefaultJDFVersion(EnumVersion.Version_1_2);
            JDFDoc doc = new JDFDoc(ElementName.JMF);
            JDFJMF jmf = doc.getJMFRoot();

            Assert.AreEqual(jmf.getMaxVersion(), jmf.getVersion(false));
            JDFCommand c = jmf.appendCommand();

            Assert.AreEqual(jmf.getMaxVersion(), c.getMaxVersion(true));
        }
예제 #2
0
        public virtual void testInit()
        {
            JDFDoc doc = new JDFDoc(ElementName.JMF);
            JDFJMF jmf = doc.getJMFRoot();

            jmf.setSenderID("sid");
            JDFCommand c = jmf.appendCommand();

            Assert.IsTrue(c.getID().IndexOf(".sid.") != -1);
            Assert.IsTrue(jmf.ToString().IndexOf("xsi:type=") > 0);
            Assert.AreEqual(jmf.getMaxVersion(), jmf.getVersion(false));
            Assert.AreEqual(jmf.getMaxVersion(), c.getMaxVersion(true));
        }