Ejemplo n.º 1
0
        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"));
        }
Ejemplo n.º 2
0
        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
        }