當前位置: 首頁>>代碼示例>>C#>>正文


C# XMLTriple.getPrefix方法代碼示例

本文整理匯總了C#中libsbmlcs.XMLTriple.getPrefix方法的典型用法代碼示例。如果您正苦於以下問題:C# XMLTriple.getPrefix方法的具體用法?C# XMLTriple.getPrefix怎麽用?C# XMLTriple.getPrefix使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在libsbmlcs.XMLTriple的用法示例。


在下文中一共展示了XMLTriple.getPrefix方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: test_XMLTriple_create

 public void test_XMLTriple_create()
 {
     XMLTriple t = new  XMLTriple();
       assertTrue( t != null );
       assertTrue( t.isEmpty() != false );
       t = null;
       t = new  XMLTriple("attr", "uri", "prefix");
       assertTrue( (  "attr" != t.getName() ) == false );
       assertTrue( (  "uri" != t.getURI() ) == false );
       assertTrue( (  "prefix" != t.getPrefix() ) == false );
       assertTrue( (  "prefix:attr" != t.getPrefixedName() ) == false );
       assertTrue( t.isEmpty() == false );
       t = null;
       t = new  XMLTriple("attr", "uri", "");
       assertTrue( (  "attr" != t.getName() ) == false );
       assertTrue( (  "uri" != t.getURI() ) == false );
       assertTrue( t.getPrefix() == "" );
       assertTrue( (  "attr" != t.getPrefixedName() ) == false );
       assertTrue( t.isEmpty() == false );
       t = null;
 }
開發者ID:alexholehouse,項目名稱:SBMLIntegrator,代碼行數:21,代碼來源:TestXMLTriple.cs

示例2: test_Triple_clone

 public void test_Triple_clone()
 {
     XMLTriple t = new XMLTriple("sarah", "http://foo.org/", "bar");
       assertTrue( t.getName() ==  "sarah" );
       assertTrue( t.getURI() ==  "http://foo.org/" );
       assertTrue( t.getPrefix() ==  "bar" );
       XMLTriple t2 = (XMLTriple) t.clone();
       assertTrue( t2.getName() ==  "sarah" );
       assertTrue( t2.getURI() ==  "http://foo.org/" );
       assertTrue( t2.getPrefix() ==  "bar" );
       t = null;
       t2 = null;
 }
開發者ID:0u812,項目名稱:roadrunner-backup,代碼行數:13,代碼來源:TestCopyAndClone.cs

示例3: test_Triple_copyConstructor

 public void test_Triple_copyConstructor()
 {
     XMLTriple t = new XMLTriple("sarah", "http://foo.org/", "bar");
       assertTrue( t.getName() ==  "sarah" );
       assertTrue( t.getURI() ==  "http://foo.org/" );
       assertTrue( t.getPrefix() ==  "bar" );
       XMLTriple t2 = new XMLTriple(t);
       assertTrue( t2.getName() ==  "sarah" );
       assertTrue( t2.getURI() ==  "http://foo.org/" );
       assertTrue( t2.getPrefix() ==  "bar" );
       t = null;
       t2 = null;
 }
開發者ID:0u812,項目名稱:roadrunner-backup,代碼行數:13,代碼來源:TestCopyAndClone.cs

示例4: test_Triple_assignmentOperator

 public void test_Triple_assignmentOperator()
 {
     XMLTriple t = new XMLTriple("sarah", "http://foo.org/", "bar");
       assertTrue( t.getName() ==  "sarah" );
       assertTrue( t.getURI() ==  "http://foo.org/" );
       assertTrue( t.getPrefix() ==  "bar" );
       XMLTriple t2 = new XMLTriple();
       t2 = t;
       assertTrue( t2.getName() ==  "sarah" );
       assertTrue( t2.getURI() ==  "http://foo.org/" );
       assertTrue( t2.getPrefix() ==  "bar" );
       t = null;
       t2 = null;
 }
開發者ID:0u812,項目名稱:roadrunner-backup,代碼行數:14,代碼來源:TestCopyAndClone.cs


注:本文中的libsbmlcs.XMLTriple.getPrefix方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。