unsetTimeUnits() public method

public unsetTimeUnits ( ) : int
return int
Ejemplo n.º 1
0
 public void test_Event_setTimeUnits3()
 {
     string units =  "1second";
       Event e = new  Event(2,1);
       int i = e.setTimeUnits(units);
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertEquals( false, e.isSetTimeUnits() );
       i = e.unsetTimeUnits();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, e.isSetTimeUnits() );
       e = null;
 }
Ejemplo n.º 2
0
 public void test_Event_setTimeUnits2()
 {
     string units =  "second";
       Event e = new  Event(2,1);
       int i = e.setTimeUnits(units);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue(( units == e.getTimeUnits() ));
       assertEquals( true, e.isSetTimeUnits() );
       i = e.unsetTimeUnits();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, e.isSetTimeUnits() );
       e = null;
 }