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

            Assert.Equal(hostNormalizer.GetNormalizedHost(), host.ToLower());
            Assert.Null(hostNormalizer.GetBytes());
        }
示例#2
0
 private void PopulateHostAndHostBytes()
 {
     if (!_isPopulated)
     {
         var hostNormalizer = new HostNormalizer(base.GetHost());
         SetRawHost(hostNormalizer.GetNormalizedHost());
         _hostBytes   = hostNormalizer.GetBytes();
         _isPopulated = true;
     }
 }