[Test] public void TestXMLBindig()
        {
            pcrxml.Script s = pcr.API.xmlFileToXMLScript("lookup.xml");
            Assert.IsNull(s.definition[0].Item);
            Assert.AreEqual("inLineTable", s.definition[2].name);

            // optional element
            Assert.IsNotNull(s.definition[0].scriptInput);
            Assert.IsTrue(s.definition[0].scriptInput != null);
            Assert.IsNull(s.definition[0].scriptOutput);
            Assert.IsTrue(s.definition[0].scriptOutput == null);

            // choice element
            Assert.IsNotNull(s.definition[2].Item);
            Assert.IsTrue(False); // bugzilla #111
            // Assert.IsTrue(s.definition[2].Item is pcrxml.Relation);
            // Assert.IsFalse(s.definition[2].Item is pcrxml.Field);
        }
Example #2
0
 public XMLReflection(String xmlString)
 {
     d_script = API.xmlStringToXMLScript(xmlString);
 }
Example #3
0
 public XMLReflection(String xmlString)
 {
     d_script=API.xmlStringToXMLScript(xmlString);
 }