public void GetIpAddressForInvalidHostnameReturnsNull() { var resolver = new IpAddressResolver(); var ip = resolver.GetIpAddressForHostname("bogus93937329923.bespokeindustries.com"); Assert.IsNull(ip); }
public void CanGetIpAddressForHostname() { var resolver = new IpAddressResolver(); var ip = resolver.GetIpAddressForHostname("bespokeindustries.com"); Assert.AreEqual("204.246.37.132", ip); }