internal static HandleRef getCPtrAndDisown(SBMLWriter obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return(ptr); }
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; }
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; }
public void test_SBMLWriter_create() { SBMLWriter w = new SBMLWriter(); assertTrue( w != null ); w = null; }
internal static HandleRef getCPtr(SBMLWriter obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
internal static HandleRef getCPtrAndDisown(SBMLWriter obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return ptr; }
internal static HandleRef getCPtr(SBMLWriter obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }