public void ProxynovaTest() { var hostPorts = HostScanner.CreateHostEndPoints(ProxynovaCountryES, ProxyPage.ProxynovaEx).ToArray(); Assert.AreEqual(6, hostPorts.Length); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("62.82.58.99"), 8080))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("84.236.134.2"), 8080))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("212.231.208.224"), 80))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("88.3.200.223"), 8080))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("46.24.18.4"), 8080))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("91.223.32.9"), 8080))); }
public void XroxyTest() { var hostPorts = HostScanner.CreateHostEndPoints(XroxyRSS, ProxyPage.XroxyRssEx).ToArray(); Assert.AreEqual(9, hostPorts.Length); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("1.234.23.22"), 8088))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("101.1.16.123"), 3128))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("101.255.28.38"), 8080))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.HttpConnect, IPAddress.Parse("101.255.89.70"), 8080))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.Socks4A, IPAddress.Parse("1.85.17.82"), 1080))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.Socks4A, IPAddress.Parse("1.93.4.225"), 1080))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.Socks4A, IPAddress.Parse("101.44.3.50"), 1080))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.Socks4A, IPAddress.Parse("103.19.180.10"), 443))); Assert.IsTrue(hostPorts.Contains(new ProxyServer(ProxyProtocol.Socks4A, IPAddress.Parse("103.24.2.117"), 1080))); }