public virtual void testIsResourceStatic() { _setUp(); m_kElement = m_jdfRoot.getChildByTagName("ComponentLink", "", 0, null, false, true); Assert.IsFalse(m_kElement is JDFResource, "Bug: " + m_kElement.Name + " is a Resource!"); m_kElement = m_jdfRoot.getChildByTagName("SizeIntent", "", 0, null, false, true); Assert.IsTrue(m_kElement is JDFResource, "Bug: " + m_kElement.Name + " is no Resource!"); m_kElement = m_jdfRoot.getChildByTagName("Dimensions", "", 0, null, false, true); Assert.IsFalse(m_kElement is JDFResource, "Bug: " + m_kElement.Name + " is a Resource!"); }
public override void setUp() { base.setUp(); JDFParser p = new JDFParser(); JDFDoc jdfDoc = p.parseFile(sm_dirTestData + PACKAGEDATA); JDFNode root = (JDFNode)jdfDoc.getRoot(); JDFContentObject contObj = (JDFContentObject)root.getChildByTagName("ContentObject", "", 0, null, false, true); m_strPath = contObj.getSourceClipPath(); }
private void _setUp() { // setup the fixture string xmlFile = "bookintent.jdf"; // test jdf functions // ================== JDFParser p = new JDFParser(); m_jdfDoc = p.parseFile(sm_dirTestData + xmlFile); Assert.IsTrue(m_jdfDoc != null, sm_dirTestData + xmlFile + ": Parse Error"); m_jdfRoot = (JDFNode)m_jdfDoc.getRoot(); m_kElement = m_jdfRoot.getChildByTagName("Dimensions", "", 0, null, false, true); m_jdfElement = (JDFElement)m_kElement; }