System.PrivateUri.Tests.IdnDnsSafeHostTest.IdnDnsSafeHost_SingleLabelAllExceptIntranet_Unicode C# (CSharp) Method

IdnDnsSafeHost_SingleLabelAllExceptIntranet_Unicode() private method

        public void IdnDnsSafeHost_SingleLabelAllExceptIntranet_Unicode()
        {
            Uri test = new Uri("HTTPS://\u30AF/");

            Assert.Equal("\u30AF", test.Host);
            Assert.Equal("\u30AF", test.DnsSafeHost);
            Assert.Equal("xn--pck", test.IdnHost);
            Assert.Equal("https://\u30AF/", test.AbsoluteUri);
        }