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()); }
public void GetPeersLength() { var seedPeers = new SeedPeers(NetworkParameters.ProdNet()); var addresses = seedPeers.GetPeers(); Assert.AreEqual(addresses.Count(), SeedPeers.SeedAddrs.Length); }
public void GetPeerOne() { var seedPeers = new SeedPeers(NetworkParameters.ProdNet()); Assert.IsNotNull(seedPeers.GetPeer()); }