예제 #1
0
        public void test_Compartment_setUnits1()
        {
            int i = C.setUnits("1cell");

            assertTrue(i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE);
            assertEquals(false, C.isSetUnits());
            i = C.unsetUnits();
            assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
            assertEquals(false, C.isSetUnits());
        }
예제 #2
0
        public void test_L3_Compartment_units()
        {
            string units = "volume";

            assertEquals(false, C.isSetUnits());
            C.setUnits(units);
            assertTrue((units == C.getUnits()));
            assertEquals(true, C.isSetUnits());
            if (C.getUnits() == units)
            {
                ;
            }
            {
            }
            C.unsetUnits();
            assertEquals(false, C.isSetUnits());
            if (C.getUnits() != null)
            {
                ;
            }
            {
            }
        }