public removeResource ( string resource ) : int | ||
resource | string | |
return | int |
public void test_CVTerm_removeResource() { CVTerm term = new CVTerm(libsbml.MODEL_QUALIFIER); string resource = "GO6666"; XMLAttributes xa; assertTrue( term != null ); assertTrue( term.getQualifierType() == libsbml.MODEL_QUALIFIER ); term.addResource(resource); xa = term.getResources(); assertTrue( xa.getLength() == 1 ); int i = term.removeResource( "CCC"); assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE ); xa = term.getResources(); assertTrue( xa.getLength() == 1 ); i = term.removeResource(resource); assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS ); xa = term.getResources(); assertTrue( xa.getLength() == 0 ); term = null; }