public void test_Compartment_setName1() { int i = C.setName("cell"); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertEquals(true, C.isSetName()); i = C.unsetName(); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertEquals(false, C.isSetName()); }
public void test_Compartment_setName2() { Compartment c = new Compartment(1, 2); int i = c.setName("1cell"); assertTrue(i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE); assertEquals(false, c.isSetName()); i = c.unsetName(); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertEquals(false, c.isSetName()); c = null; }
public void test_L3_Compartment_name() { string name = "My_Favorite_Factory"; assertEquals(false, C.isSetName()); C.setName(name); assertTrue((name == C.getName())); assertEquals(true, C.isSetName()); if (C.getName() == name) { ; } { } C.unsetName(); assertEquals(false, C.isSetName()); if (C.getName() != null) { ; } { } }