public virtual void testGetDateTimeState() { JDFDoc d = new JDFDoc("DevCap"); JDFDevCap dc = (JDFDevCap)d.getRoot(); JDFDateTimeState dts = dc.appendDateTimeState("foo"); Assert.AreEqual("foo", dts.getName()); dts = dc.getDateTimeState("bar"); Assert.IsNull(dts); dts = dc.getCreateDateTimeState("bar"); Assert.IsNotNull(dts); Assert.AreEqual("bar", dts.getName()); dts = dc.getDateTimeState("bar"); Assert.IsNotNull(dts); Assert.AreEqual("bar", dts.getName()); }