public virtual void testsetFamily() { JDFDoc doc = new JDFDoc(ElementName.MESSAGESERVICE); JDFMessageService ms = (JDFMessageService)doc.getRoot(); ms.setFamily(EnumFamily.Query); Assert.IsTrue(ms.getQuery()); }
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()); }