示例#1
0
 public void GetPeerAll()
 {
     var seedPeers = new SeedPeers(NetworkParameters.ProdNet());
     for (var i = 0; i < SeedPeers.SeedAddrs.Length; ++i)
     {
         Assert.IsNotNull(seedPeers.GetPeer(), "Failed on index: " + i);
     }
     Assert.IsNull(seedPeers.GetPeer());
 }
示例#2
0
 public void GetPeersLength()
 {
     var seedPeers = new SeedPeers(NetworkParameters.ProdNet());
     var addresses = seedPeers.GetPeers();
     Assert.AreEqual(addresses.Count(), SeedPeers.SeedAddrs.Length);
 }
示例#3
0
 public void GetPeerOne()
 {
     var seedPeers = new SeedPeers(NetworkParameters.ProdNet());
     Assert.IsNotNull(seedPeers.GetPeer());
 }