Esempio n. 1
0
        public virtual void testGetBooleanState()
        {
            JDFDoc          d  = new JDFDoc("DevCap");
            JDFDevCap       dc = (JDFDevCap)d.getRoot();
            JDFBooleanState bs = dc.appendBooleanState("foo");

            Assert.AreEqual("foo", bs.getName());
            bs = dc.getBooleanState("bar");
            Assert.IsNull(bs);
            bs = dc.getCreateBooleanState("bar");
            Assert.IsNotNull(bs);
            Assert.AreEqual("bar", bs.getName());
            bs = dc.getBooleanState("bar");
            Assert.IsNotNull(bs);
            Assert.AreEqual("bar", bs.getName());
        }