コード例 #1
0
        public void GetIpAddressForInvalidHostnameReturnsNull()
        {
            var resolver = new IpAddressResolver();
            var ip = resolver.GetIpAddressForHostname("bogus93937329923.bespokeindustries.com");

            Assert.IsNull(ip);
        }
コード例 #2
0
        public void GetIpAddressForInvalidHostnameReturnsNull()
        {
            var resolver = new IpAddressResolver();
            var ip       = resolver.GetIpAddressForHostname("bogus93937329923.bespokeindustries.com");

            Assert.IsNull(ip);
        }
コード例 #3
0
        public void CanGetIpAddressForHostname()
        {
            var resolver = new IpAddressResolver();
            var ip = resolver.GetIpAddressForHostname("bespokeindustries.com");

            Assert.AreEqual("204.246.37.132", ip);
        }
コード例 #4
0
        public void CanGetIpAddressForHostname()
        {
            var resolver = new IpAddressResolver();
            var ip       = resolver.GetIpAddressForHostname("bespokeindustries.com");

            Assert.AreEqual("204.246.37.132", ip);
        }