本文整理汇总了C#中HyperEdgeId.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# HyperEdgeId.ToString方法的具体用法?C# HyperEdgeId.ToString怎么用?C# HyperEdgeId.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HyperEdgeId
的用法示例。
在下文中一共展示了HyperEdgeId.ToString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HyperEdgeIdUriConstructorTest
public void HyperEdgeIdUriConstructorTest()
{
var _HyperEdgeId = new HyperEdgeId(new Uri("http://example.org"));
Assert.AreEqual("http://example.org/", _HyperEdgeId.ToString());
Assert.AreEqual(19, _HyperEdgeId.Length);
}
示例2: HyperEdgeIdUInt64ConstructorTest
public void HyperEdgeIdUInt64ConstructorTest()
{
var _HyperEdgeId = new HyperEdgeId(123UL);
Assert.AreEqual("123", _HyperEdgeId.ToString());
Assert.AreEqual(3, _HyperEdgeId.Length);
}
示例3: HyperEdgeIdUInt32ConstructorTest
public void HyperEdgeIdUInt32ConstructorTest()
{
var _HyperEdgeId = new HyperEdgeId(23U);
Assert.AreEqual("23", _HyperEdgeId.ToString());
Assert.AreEqual(2, _HyperEdgeId.Length);
}
示例4: HyperEdgeIdInt64ConstructorTest
public void HyperEdgeIdInt64ConstructorTest()
{
var _HyperEdgeId = new HyperEdgeId(42L);
Assert.AreEqual("42", _HyperEdgeId.ToString());
Assert.AreEqual(2, _HyperEdgeId.Length);
}
示例5: HyperEdgeIdInt32ConstructorTest
public void HyperEdgeIdInt32ConstructorTest()
{
var _HyperEdgeId = new HyperEdgeId(5);
Assert.AreEqual("5", _HyperEdgeId.ToString());
Assert.AreEqual(1, _HyperEdgeId.Length);
}
示例6: HyperEdgeIdHyperEdgeIdConstructorTest
public void HyperEdgeIdHyperEdgeIdConstructorTest()
{
var _HyperEdgeId1 = HyperEdgeId.NewHyperEdgeId;
var _HyperEdgeId2 = new HyperEdgeId(_HyperEdgeId1);
Assert.AreEqual(_HyperEdgeId1.ToString(), _HyperEdgeId2.ToString());
Assert.AreEqual(_HyperEdgeId1.Length, _HyperEdgeId2.Length);
Assert.AreEqual(_HyperEdgeId1, _HyperEdgeId2);
}