public void TestSanityAddresses(string host)
        {
            HostNormalizer hostNormalizer = new HostNormalizer(host);

            Assert.Equal(hostNormalizer.GetNormalizedHost(), host.ToLower());
            Assert.Null(hostNormalizer.GetBytes());
        }
 private void PopulateHostAndHostBytes()
 {
     if (!_isPopulated)
     {
         var hostNormalizer = new HostNormalizer(base.GetHost());
         SetRawHost(hostNormalizer.GetNormalizedHost());
         _hostBytes   = hostNormalizer.GetBytes();
         _isPopulated = true;
     }
 }
        public void TestIpHostNormalizationAndGetBytes(string original, string expectedHost)
        {
            HostNormalizer hostNormalizer = new HostNormalizer(original);
            var            normalizedHost = hostNormalizer.GetNormalizedHost();

            Assert.Equal(expectedHost, normalizedHost);

            /*
             * InetAddress address = InetAddress.getByName(expectedHost);
             * byte[] expectedBytes;
             * if (address instanceof Inet4Address) {
             * expectedBytes = new byte[16];
             * expectedBytes[10] = (byte) 0xff;
             * expectedBytes[11] = (byte) 0xff;
             * System.arraycopy(address.getAddress(), 0, expectedBytes, 12, 4);
             * } else {
             * expectedBytes = address.getAddress();
             * }
             * Assert.True(Arrays.equals(hostNormalizer.getBytes(), expectedBytes));
             */
        }