コード例 #1
0
        public virtual void testGetPDFPathState()
        {
            JDFDoc          d   = new JDFDoc("DevCap");
            JDFDevCap       dc  = (JDFDevCap)d.getRoot();
            JDFPDFPathState pps = dc.appendPDFPathState("foo");

            Assert.AreEqual("foo", pps.getName());
            pps = dc.getPDFPathState("bar");
            Assert.IsNull(pps);
            pps = dc.getCreatePDFPathState("bar");
            Assert.IsNotNull(pps);
            Assert.AreEqual("bar", pps.getName());
            pps = dc.getPDFPathState("bar");
            Assert.IsNotNull(pps);
            Assert.AreEqual("bar", pps.getName());
        }