Example #1
0
        public virtual void testGetMatrixState()
        {
            JDFDoc         d  = new JDFDoc("DevCap");
            JDFDevCap      dc = (JDFDevCap)d.getRoot();
            JDFMatrixState ms = dc.appendMatrixState("foo");

            Assert.AreEqual("foo", ms.getName());
            ms = dc.getMatrixState("bar");
            Assert.IsNull(ms);
            ms = dc.getCreateMatrixState("bar");
            Assert.IsNotNull(ms);
            Assert.AreEqual("bar", ms.getName());
            ms = dc.getMatrixState("bar");
            Assert.IsNotNull(ms);
            Assert.AreEqual("bar", ms.getName());
        }