Exemple #1
0
 public void MultiEdgeIdUriConstructorTest()
 {
     var _MultiEdgeId = new MultiEdgeId(new Uri("http://example.org"));
     Assert.AreEqual("http://example.org/", _MultiEdgeId.ToString());
     Assert.AreEqual(19,                    _MultiEdgeId.Length);
 }
Exemple #2
0
 public void MultiEdgeIdUInt64ConstructorTest()
 {
     var _MultiEdgeId = new MultiEdgeId(123UL);
     Assert.AreEqual("123", _MultiEdgeId.ToString());
     Assert.AreEqual(3,     _MultiEdgeId.Length);
 }
Exemple #3
0
 public void MultiEdgeIdUInt32ConstructorTest()
 {
     var _MultiEdgeId = new MultiEdgeId(23U);
     Assert.AreEqual("23", _MultiEdgeId.ToString());
     Assert.AreEqual(2,    _MultiEdgeId.Length);
 }
Exemple #4
0
 public void MultiEdgeIdMultiEdgeIdConstructorTest()
 {
     var _MultiEdgeId1 = MultiEdgeId.NewMultiEdgeId;
     var _MultiEdgeId2 = new MultiEdgeId(_MultiEdgeId1);
     Assert.AreEqual(_MultiEdgeId1.ToString(), _MultiEdgeId2.ToString());
     Assert.AreEqual(_MultiEdgeId1.Length,     _MultiEdgeId2.Length);
     Assert.AreEqual(_MultiEdgeId1,            _MultiEdgeId2);
 }
Exemple #5
0
 public void MultiEdgeIdInt64ConstructorTest()
 {
     var _MultiEdgeId = new MultiEdgeId(42L);
     Assert.AreEqual("42", _MultiEdgeId.ToString());
     Assert.AreEqual(2,    _MultiEdgeId.Length);
 }
Exemple #6
0
 public void MultiEdgeIdInt32ConstructorTest()
 {
     var _MultiEdgeId = new MultiEdgeId(5);
     Assert.AreEqual("5", _MultiEdgeId.ToString());
     Assert.AreEqual(1,   _MultiEdgeId.Length);
 }