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; } }