public void test_Compartment_unsetSize() { C.setSize(0.2); assertTrue(C.getSize() == 0.2); assertEquals(true, C.isSetSize()); C.unsetSize(); assertEquals(false, C.isSetSize()); }
public void test_Compartment_setSize1() { int i = C.setSize(2.0); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertTrue(C.getSize() == 2.0); i = C.unsetSize(); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); }
public void test_L3_Compartment_size() { double size = 0.2; assertEquals(false, C.isSetSize()); assertEquals(true, isnan(C.getSize())); C.setSize(size); assertTrue(C.getSize() == size); assertEquals(true, C.isSetSize()); C.unsetSize(); assertEquals(false, C.isSetSize()); assertEquals(true, isnan(C.getSize())); }
public void test_Compartment_setSize2() { Compartment c = new Compartment(2, 2); int i = c.setSize(4); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertTrue(c.getSize() == 4); assertEquals(true, c.isSetSize()); i = c.unsetSize(); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertEquals(false, c.isSetSize()); c = null; }