Exemple #1
0
        public void ResolvesAHost(string host, string expectedIp)
        {
            string pacfunction = "function FindProxyForURL(url, host) {return dnsResolve(host)}";

            parser.Execute(pacfunction);

            Assert.Equal(expectedIp, parser.FindProxyForURL(Url, host));
        }
Exemple #2
0
        public void ReturnsReturnValue(string pacfunction, string proxy)
        {
            parser.Execute(pacfunction);

            Assert.Equal(proxy, parser.FindProxyForURL(Url, host));
        }