示例#1
0
        public void testGetTruePage()
        {
            JDFResourcePool resPool = root.getCreateResourcePool();
            JDFRunList      ruli    = (JDFRunList)resPool.appendResource(ElementName.RUNLIST, null, null);

            Assert.AreEqual(ruli, ruli.getTruePage());
            JDFRunList ruli2 = ruli.addSepRun(StringUtil.tokenize("c.pdf m.pdf y.pdf k.pdf", " ", false), StringUtil.tokenize("Cyan Magenta Yellow Black", " ", false), 0, 4, true);

            Assert.AreEqual(ruli, ruli.getTruePage());
            Assert.AreEqual(ruli2, ruli2.getTruePage());
            JDFRunList ruli2c = (JDFRunList)ruli2.getElement_KElement(ElementName.RUNLIST, null, 0);

            Assert.AreEqual(ruli2, ruli2.getTruePage());
            Assert.AreEqual(ruli2, ruli2c.getTruePage());
        }