hasRequiredAttributes() public méthode

public hasRequiredAttributes ( ) : bool
Résultat bool
 public void test_Compartment()
 {
     Compartment c = new Compartment(2,4);
       assertEquals( false, (c.hasRequiredAttributes()) );
       c.setId("c");
       assertEquals( true, c.hasRequiredAttributes() );
       c = null;
 }
 public void test_L3_Compartment_hasRequiredAttributes()
 {
     Compartment c = new  Compartment(3,1);
       assertEquals( false, c.hasRequiredAttributes() );
       c.setId( "id");
       assertEquals( false, c.hasRequiredAttributes() );
       c.setConstant(false);
       assertEquals( true, c.hasRequiredAttributes() );
       c = null;
 }