public void test_SBMLNamespaces_L2V1() { SBMLNamespaces sbml = new SBMLNamespaces(2,1); assertTrue( sbml.getLevel() == 2 ); assertTrue( sbml.getVersion() == 1 ); XMLNamespaces ns = sbml.getNamespaces(); assertTrue( ns.getLength() == 1 ); assertTrue( ns.getURI(0) == "http://www.sbml.org/sbml/level2" ); assertTrue( ns.getPrefix(0) == "" ); sbml = null; }
public static SBMLNamespaces DowncastSBMLNamespaces(IntPtr cPtr, bool owner) { if (cPtr.Equals(IntPtr.Zero)) return null; SBMLNamespaces sbn = new SBMLNamespaces(cPtr, false); if (sbn != null) { XMLNamespaces ns = sbn.getNamespaces(); } return new SBMLNamespaces(cPtr, owner); }