Esempio n. 1
0
        public void test_CompartmentType_createWithNS()
        {
            XMLNamespaces xmlns = new  XMLNamespaces();

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

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

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