Пример #1
0
 public void test_L3_LocalParameter_create()
 {
     assertTrue(P.getTypeCode() == libsbml.SBML_LOCAL_PARAMETER);
     assertTrue(P.getMetaId() == "");
     assertTrue(P.getNotes() == null);
     assertTrue(P.getAnnotation() == null);
     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());
 }
Пример #2
0
        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;
        }