public virtual void testRunList() { JDFDoc d = new JDFDoc(ElementName.JDF); JDFNode r = d.getJDFRoot(); JDFRunList rl = (JDFRunList)r.addResource("RunList", null, EnumUsage.Input, null, null, null, null); JDFInsertSheet is1 = rl.appendInsertSheet(); is1.setSheetType(EnumSheetType.SeparatorSheet); is1.setSheetUsage(EnumSheetUsage.Slip); JDFInsertSheet is2 = rl.appendInsertSheet(); is2.setSheetType(EnumSheetType.SeparatorSheet); is2.setSheetUsage(EnumSheetUsage.Slip); Assert.AreNotEqual(is2, is1, "two insert sheets"); rl.appendLayoutElement(); // 1 Assert.IsTrue(rl.isValid(EnumValidationLevel.Complete), "runlist valid"); bool b1 = false; try { rl.appendLayoutElement(); } catch (JDFException) { b1 = true; } Assert.IsTrue(b1, "only one layoutelement possible"); }