public void test_L3_LocalParameter_createWithNS() { XMLNamespaces xmlns = new XMLNamespaces(); xmlns.add("http://www.sbml.org", "testsbml"); SBMLNamespaces sbmlns = new SBMLNamespaces(3, 1); sbmlns.addNamespaces(xmlns); LocalParameter p = new LocalParameter(sbmlns); assertTrue(p.getTypeCode() == libsbml.SBML_LOCAL_PARAMETER); assertTrue(p.getMetaId() == ""); assertTrue(p.getNotes() == null); assertTrue(p.getAnnotation() == null); assertTrue(p.getLevel() == 3); assertTrue(p.getVersion() == 1); assertTrue(p.getNamespaces() != null); assertTrue(p.getNamespaces().getLength() == 2); assertTrue(p.getId() == ""); assertTrue(p.getName() == ""); assertTrue(p.getUnits() == ""); assertEquals(true, double.IsNaN(p.getValue())); assertEquals(false, p.isSetId()); assertEquals(false, p.isSetName()); assertEquals(false, p.isSetValue()); assertEquals(false, p.isSetUnits()); p = null; }
public void test_L3_LocalParameter_NS() { assertTrue(P.getNamespaces() != null); assertTrue(P.getNamespaces().getLength() == 1); assertTrue(("http://www.sbml.org/sbml/level3/version1/core" == P.getNamespaces().getURI(0))); }