Exemplo n.º 1
0
        public virtual void testGetDurationState()
        {
            JDFDoc           d  = new JDFDoc("DevCap");
            JDFDevCap        dc = (JDFDevCap)d.getRoot();
            JDFDurationState ds = dc.appendDurationState("foo");

            Assert.AreEqual("foo", ds.getName());
            ds = dc.getDurationState("bar");
            Assert.IsNull(ds);
            ds = dc.getCreateDurationState("bar");
            Assert.IsNotNull(ds);
            Assert.AreEqual("bar", ds.getName());
            ds = dc.getDurationState("bar");
            Assert.IsNotNull(ds);
            Assert.AreEqual("bar", ds.getName());
        }