public void Test_PeerPingedEventArgs()
        {
            IPEndPoint peerEndPoint = new IPEndPoint(IPAddress.Any, 1111);
            var        nodeId       = DHTId.CreateRandom();
            var        evt          = new PeerPingedEventArgs(peerEndPoint, nodeId);

            Assert.IsNotNull(evt);
            Assert.AreEqual(peerEndPoint, evt.EndPoint);
            Assert.AreEqual(nodeId, evt.NodeId);
        }
Exemplo n.º 2
0
        public void Test_PeerPingedEventArgs()
        {
            IPEndPoint peerEndPoint = new IPEndPoint(IPAddress.Any, 1111);

            byte[] nodeId = DHTHelper.GetRandomID();
            var    evt    = new PeerPingedEventArgs(peerEndPoint, nodeId);

            Assert.IsNotNull(evt);
            Assert.AreEqual(peerEndPoint, evt.EndPoint);
            Assert.AreEqual(nodeId, evt.NodeId);
        }
Exemplo n.º 3
0
 private void OnPeerPinged(object sender, PeerPingedEventArgs e)
 {
 }