public void MultiEdgeIdUriConstructorTest() { var _MultiEdgeId = new MultiEdgeId(new Uri("http://example.org")); Assert.AreEqual("http://example.org/", _MultiEdgeId.ToString()); Assert.AreEqual(19, _MultiEdgeId.Length); }
public void MultiEdgeIdUInt64ConstructorTest() { var _MultiEdgeId = new MultiEdgeId(123UL); Assert.AreEqual("123", _MultiEdgeId.ToString()); Assert.AreEqual(3, _MultiEdgeId.Length); }
public void MultiEdgeIdUInt32ConstructorTest() { var _MultiEdgeId = new MultiEdgeId(23U); Assert.AreEqual("23", _MultiEdgeId.ToString()); Assert.AreEqual(2, _MultiEdgeId.Length); }
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); }
public void MultiEdgeIdInt64ConstructorTest() { var _MultiEdgeId = new MultiEdgeId(42L); Assert.AreEqual("42", _MultiEdgeId.ToString()); Assert.AreEqual(2, _MultiEdgeId.Length); }
public void MultiEdgeIdInt32ConstructorTest() { var _MultiEdgeId = new MultiEdgeId(5); Assert.AreEqual("5", _MultiEdgeId.ToString()); Assert.AreEqual(1, _MultiEdgeId.Length); }