Ejemplo n.º 1
0
        public void NodeId_ParseNoHigh()
        {
            Random random = new Random(1);
            NodeId nodeId = new NodeId(new BigInteger(0), new BigInteger(random.Next(int.MaxValue)));
            NodeId parsed;

            LogHelper.Log("Node Id: {0}", nodeId.ToString());
            Assert.IsTrue(NodeId.TryParse(nodeId.ToString(), out parsed), "Parse failed");
            Assert.AreEqual(nodeId, parsed, "Parsed nodeID not same as original one");
        }