Пример #1
0
 public void test_InitialAssignment_create()
 {
     assertTrue(IA.getTypeCode() == libsbml.SBML_INITIAL_ASSIGNMENT);
     assertTrue(IA.getMetaId() == "");
     assertTrue(IA.getNotes() == null);
     assertTrue(IA.getAnnotation() == null);
     assertTrue(IA.getSymbol() == "");
     assertTrue(IA.getMath() == null);
 }
Пример #2
0
        public void test_InitialAssignment_createWithNS()
        {
            XMLNamespaces xmlns = new  XMLNamespaces();

            xmlns.add("http://www.sbml.org", "testsbml");
            SBMLNamespaces sbmlns = new  SBMLNamespaces(2, 3);

            sbmlns.addNamespaces(xmlns);
            InitialAssignment object1 = new  InitialAssignment(sbmlns);

            assertTrue(object1.getTypeCode() == libsbml.SBML_INITIAL_ASSIGNMENT);
            assertTrue(object1.getMetaId() == "");
            assertTrue(object1.getNotes() == null);
            assertTrue(object1.getAnnotation() == null);
            assertTrue(object1.getLevel() == 2);
            assertTrue(object1.getVersion() == 3);
            assertTrue(object1.getNamespaces() != null);
            assertTrue(object1.getNamespaces().getLength() == 2);
            object1 = null;
        }