Esempio n. 1
0
        public virtual void testGetIntegerState()
        {
            JDFDoc          d   = new JDFDoc("DevCap");
            JDFDevCap       dc  = (JDFDevCap)d.getRoot();
            JDFIntegerState @is = dc.appendIntegerState("foo");

            Assert.AreEqual("foo", @is.getName());
            @is = dc.getIntegerState("bar");
            Assert.IsNull(@is);
            @is = dc.getCreateIntegerState("bar");
            Assert.IsNotNull(@is);
            Assert.AreEqual("bar", @is.getName());
            @is = dc.getIntegerState("bar");
            Assert.IsNotNull(@is);
            Assert.AreEqual("bar", @is.getName());
        }