Example #1
0
        public virtual void testDeviceCapIsValid()
        {
            JDFParser p         = new JDFParser();
            string    docDevCap = "DevCaps_Product_MISPrepress_ICS_Minimal.jdf";
            JDFDoc    jmfDevCap = p.parseFile(sm_dirTestData + docDevCap);

            Assert.IsNotNull(jmfDevCap, "Parse of file " + docDevCap + " failed");
            JDFJMF jmfRoot = jmfDevCap.getJMFRoot();

            Assert.IsNotNull(jmfRoot, "jmfRoot == null Can't start Test");
            JDFDeviceCap deviceCap = (JDFDeviceCap)jmfRoot.getChildByTagName("DeviceCap", "", 0, null, false, true);

            Assert.IsTrue(deviceCap.isValid(KElement.EnumValidationLevel.Incomplete));
        }