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)); }
public void ReturnsReturnValue(string pacfunction, string proxy) { parser.Execute(pacfunction); Assert.Equal(proxy, parser.FindProxyForURL(Url, host)); }