Example #1
0
        public virtual void testGetNumberState()
        {
            JDFDoc         d  = new JDFDoc("DevCap");
            JDFDevCap      dc = (JDFDevCap)d.getRoot();
            JDFNumberState ns = dc.appendNumberState("foo");

            Assert.AreEqual("foo", ns.getName());
            ns = dc.getNumberState("bar");
            Assert.IsNull(ns);
            ns = dc.getCreateNumberState("bar");
            Assert.IsNotNull(ns);
            Assert.AreEqual("bar", ns.getName());
            ns = dc.getNumberState("bar");
            Assert.IsNotNull(ns);
            Assert.AreEqual("bar", ns.getName());
        }