getNumResources() public method

public getNumResources ( ) : long
return long
Beispiel #1
0
 public void test_CVTerm_getResources()
 {
     CVTerm term = new  CVTerm(libsbml.MODEL_QUALIFIER);
       string resource =  "GO6666";
       string resource1 =  "OtherURI";
       long number;
       term.addResource(resource);
       term.addResource(resource1);
       number = term.getNumResources();
       assertTrue( number == 2 );
       assertTrue((  "GO6666" == term.getResourceURI(0) ));
       assertTrue((  "OtherURI" == term.getResourceURI(1) ));
       term = null;
 }