Example #1
0
        public virtual void testGetXYPairState()
        {
            JDFDoc         d  = new JDFDoc("DevCap");
            JDFDevCap      dc = (JDFDevCap)d.getRoot();
            JDFXYPairState xy = dc.appendXYPairState("foo");

            Assert.AreEqual("foo", xy.getName());
            xy = dc.getXYPairState("bar");
            Assert.IsNull(xy);
            xy = dc.getCreateXYPairState("bar");
            Assert.IsNotNull(xy);
            Assert.AreEqual("bar", xy.getName());
            xy = dc.getXYPairState("bar");
            Assert.IsNotNull(xy);
            Assert.AreEqual("bar", xy.getName());
        }