Exemple #1
0
        public virtual void testGetStringState()
        {
            JDFDoc         d  = new JDFDoc("DevCap");
            JDFDevCap      dc = (JDFDevCap)d.getRoot();
            JDFStringState ss = dc.appendStringState("foo");

            Assert.AreEqual("foo", ss.getName());
            ss = dc.getStringState("bar");
            Assert.IsNull(ss);
            ss = dc.getCreateStringState("bar");
            Assert.IsNotNull(ss);
            Assert.AreEqual("bar", ss.getName());
            ss = dc.getStringState("bar");
            Assert.IsNotNull(ss);
            Assert.AreEqual("bar", ss.getName());
        }