libsbmlcs.Compartment.getCompartmentType C# (CSharp) Method

getCompartmentType() public method

public getCompartmentType ( ) : string
return string
        public string getCompartmentType()
        {
            string ret = libsbmlPINVOKE.Compartment_getCompartmentType(swigCPtr);
            return ret;
        }

Usage Example

 public void test_Compartment_setCompartmentType3()
 {
     Compartment c = new  Compartment(2,2);
       int i = c.setCompartmentType( "cell");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( true, c.isSetCompartmentType() );
       assertTrue((  "cell"  == c.getCompartmentType() ));
       i = c.unsetCompartmentType();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetCompartmentType() );
       c = null;
 }