System.PrivateUri.Tests.IdnDnsSafeHostTest.IdnDnsSafeHost_SingleLabelAllExceptIntranet_Unicode C# (CSharp) Méthode

IdnDnsSafeHost_SingleLabelAllExceptIntranet_Unicode() private méthode

private IdnDnsSafeHost_SingleLabelAllExceptIntranet_Unicode ( ) : void
Résultat void
        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);
        }