setSubstanceUnits() public method

public setSubstanceUnits ( string sid ) : int
sid string
return int
コード例 #1
0
 public void test_KineticLaw_setSubstanceUnits4()
 {
     KineticLaw kl1 = new  KineticLaw(1,2);
       int i = kl1.setSubstanceUnits("");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, kl1.isSetSubstanceUnits() );
       kl1 = null;
 }
コード例 #2
0
 public void test_KineticLaw_setSubstanceUnits3()
 {
     KineticLaw kl1 = new  KineticLaw(1,2);
       int i = kl1.setSubstanceUnits( "1second");
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertEquals( false, kl1.isSetSubstanceUnits() );
       i = kl1.unsetSubstanceUnits();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, kl1.isSetSubstanceUnits() );
       kl1 = null;
 }