Example #1
0
        public virtual void testGetRectangleState()
        {
            JDFDoc            d  = new JDFDoc("DevCap");
            JDFDevCap         dc = (JDFDevCap)d.getRoot();
            JDFRectangleState rs = dc.appendRectangleState("foo");

            Assert.AreEqual("foo", rs.getName());
            rs = dc.getRectangleState("bar");
            Assert.IsNull(rs);
            rs = dc.getCreateRectangleState("bar");
            Assert.IsNotNull(rs);
            Assert.AreEqual("bar", rs.getName());
            rs = dc.getRectangleState("bar");
            Assert.IsNotNull(rs);
            Assert.AreEqual("bar", rs.getName());
        }