Example #1
0
 public void test_AlgebraicRule_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,3);
       sbmlns.addNamespaces(xmlns);
       Rule r = new  AlgebraicRule(sbmlns);
       assertTrue( r.getTypeCode() == libsbml.SBML_ALGEBRAIC_RULE );
       assertTrue( r.getMetaId() == "" );
       assertTrue( r.getNotes() == null );
       assertTrue( r.getAnnotation() == null );
       assertTrue( r.getLevel() == 2 );
       assertTrue( r.getVersion() == 3 );
       assertTrue( r.getNamespaces() != null );
       assertTrue( r.getNamespaces().getLength() == 2 );
       r = null;
 }