コード例 #1
0
        public virtual void testsetFamily()
        {
            JDFDoc            doc = new JDFDoc(ElementName.MESSAGESERVICE);
            JDFMessageService ms  = (JDFMessageService)doc.getRoot();

            ms.setFamily(EnumFamily.Query);
            Assert.IsTrue(ms.getQuery());
        }
コード例 #2
0
        public virtual void testsetFamilies()
        {
            JDFDoc            doc = new JDFDoc(ElementName.MESSAGESERVICE);
            JDFMessageService ms  = (JDFMessageService)doc.getRoot();
            ArrayList         v   = new ArrayList();

            v.Add(EnumFamily.Query);
            v.Add(EnumFamily.Command);
            ms.setFamilies(v);
            Assert.IsTrue(ms.getQuery());
            Assert.IsTrue(ms.getCommand());
            Assert.IsFalse(ms.getRegistration());
        }