当前位置: 首页>>代码示例>>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;未经允许,请勿转载。