コード例 #1
0
        public virtual void testGetEnumerationState()
        {
            JDFDoc              d  = new JDFDoc("DevCap");
            JDFDevCap           dc = (JDFDevCap)d.getRoot();
            JDFEnumerationState es = dc.appendEnumerationState("foo");

            Assert.AreEqual("foo", es.getName());
            es = dc.getEnumerationState("bar");
            Assert.IsNull(es);
            es = dc.getCreateEnumerationState("bar");
            Assert.IsNotNull(es);
            Assert.AreEqual("bar", es.getName());
            es = dc.getEnumerationState("bar");
            Assert.IsNotNull(es);
            Assert.AreEqual("bar", es.getName());
        }