hasRequiredAttributes() public method

public hasRequiredAttributes ( ) : bool
return bool
Exemplo n.º 1
0
 public void test_L3_Unit_hasRequiredAttributes()
 {
     Unit u = new  Unit(3,1);
       assertEquals( false, u.hasRequiredAttributes() );
       u.setKind(libsbml.UNIT_KIND_MOLE);
       assertEquals( false, u.hasRequiredAttributes() );
       u.setExponent(0);
       assertEquals( false, u.hasRequiredAttributes() );
       u.setMultiplier(0.45);
       assertEquals( false, u.hasRequiredAttributes() );
       u.setScale(2);
       assertEquals( true, u.hasRequiredAttributes() );
       u = null;
 }
Exemplo n.º 2
0
 public void test_Unit()
 {
     Unit u = new Unit(2,4);
       assertEquals( false, (u.hasRequiredAttributes()) );
       u.setKind(libsbml.UNIT_KIND_MOLE);
       assertEquals( true, u.hasRequiredAttributes() );
       u = null;
 }