public virtual void testAction() { JDFDoc d = new JDFDoc(ElementName.DEVICECAP); JDFDeviceCap dc = (JDFDeviceCap)d.getRoot(); JDFTestPool tp = dc.appendTestPool(); JDFTest test = tp.appendTest(); JDFActionPool ap = dc.appendActionPool(); JDFAction a = ap.appendAction(); a.setTest(test); Assert.AreEqual(test, a.getTest()); Assert.IsTrue(a.hasAttribute("TestRef")); }
public virtual void testLogic() { JDFDoc d = new JDFDoc(ElementName.DEVICECAP); JDFDeviceCap dc = (JDFDeviceCap)d.getRoot(); dc.appendDevCapPool(); JDFTestPool tp = dc.appendTestPool(); JDFTest test = tp.appendTest(); test.appendTerm(EnumTerm.and); JDFActionPool ap = dc.appendActionPool(); JDFAction a = ap.appendAction(); a.setTest(test); // TODO more }