本文整理匯總了C#中libsbmlcs.SBMLDocument.getNotes方法的典型用法代碼示例。如果您正苦於以下問題:C# SBMLDocument.getNotes方法的具體用法?C# SBMLDocument.getNotes怎麽用?C# SBMLDocument.getNotes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類libsbmlcs.SBMLDocument
的用法示例。
在下文中一共展示了SBMLDocument.getNotes方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: test_SBMLDocument_createWith
public void test_SBMLDocument_createWith()
{
SBMLDocument d = new SBMLDocument(1,2);
assertTrue( d.getTypeCode() == libsbml.SBML_DOCUMENT );
assertTrue( d.getNotes() == null );
assertTrue( d.getAnnotation() == null );
assertTrue( d.getLevel() == 1 );
assertTrue( d.getVersion() == 2 );
assertTrue( d.getNumErrors() == 0 );
d = null;
}
示例2: test_ReadSBML_notes_sbml
public void test_ReadSBML_notes_sbml()
{
string s = wrapXML("<sbml level='1' version='1'>" +
" <notes>Notes are not allowed as part of the SBML element.</notes>" +
"</sbml>");
D = libsbml.readSBMLFromString(s);
assertTrue( D.getNotes() != null );
string notes = D.getNotes().getChild(0).getCharacters();
assertTrue( ( "Notes are not allowed as part of the SBML element." != notes ) == false );
assertTrue( D.getNumErrors() > 0 );
}
示例3: test_ReadSBML_notes_sbml_L2
public void test_ReadSBML_notes_sbml_L2()
{
string s = wrapXML("<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\"> " +
" <notes>" +
" <html xmlns=\"http://www.w3.org/1999/xhtml\">" +
" </html>" +
" </notes>" +
" <model>" +
" </model>" +
" </sbml>");
D = libsbml.readSBMLFromString(s);
assertTrue( D.getNotes() != null );
assertTrue( D.getNumErrors() == 0 );
}