Inheritance: IDisposable
Beispiel #1
0
        internal static HandleRef getCPtrAndDisown(SBMLWriter obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

            if (obj != null)
            {
                ptr             = obj.swigCPtr;
                obj.swigCMemOwn = false;
            }

            return(ptr);
        }
Beispiel #2
0
 public void test_WriteSBML_error()
 {
     SBMLDocument d = new SBMLDocument();
       SBMLWriter w = new SBMLWriter();
       assertEquals( false, w.writeSBML(d, "/tmp/impossible/path/should/fail") );
       assertTrue( d.getNumErrors() == 1 );
       assertTrue( d.getError(0).getErrorId() == libsbml.XMLFileUnwritable );
       d = null;
       w = null;
 }
Beispiel #3
0
 public void test_SBMLWriter_setProgramVersion()
 {
     SBMLWriter w = new  SBMLWriter();
       assertTrue( w != null );
       int i = w.setProgramVersion( "sss");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       i = w.setProgramVersion("");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       w = null;
 }
Beispiel #4
0
 public void test_SBMLWriter_create()
 {
     SBMLWriter w = new  SBMLWriter();
       assertTrue( w != null );
       w = null;
 }
Beispiel #5
0
 internal static HandleRef getCPtr(SBMLWriter obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #6
0
        internal static HandleRef getCPtrAndDisown(SBMLWriter obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

            if (obj != null)
            {
            ptr             = obj.swigCPtr;
            obj.swigCMemOwn = false;
            }

            return ptr;
        }
Beispiel #7
0
 internal static HandleRef getCPtr(SBMLWriter obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }