示例#1
0
 public void TestAuthority()
 {
     foreach (
         QUrl.ComponentFormattingOption formatting in Enum.GetValues(typeof(QUrl.ComponentFormattingOption)))
     {
         var s = _qUrl.Authority(formatting);
         Assert.IsNotNullOrEmpty(s, "Problem in enum: " + formatting.ToString());
     }
 }
示例#2
0
        public void TestSetAuthority()
        {
            var baseUrl = new QUrl();

            baseUrl.Scheme = "ftp";
            baseUrl.SetAuthority("tray:[email protected]:2021");
            baseUrl.SetFragment("#question13");

            Assert.AreEqual("tray:[email protected]:2021", baseUrl.Authority());
        }
示例#3
0
        public void TestSetAuthority()
        {
            var baseUrl = new QUrl();
            baseUrl.Scheme = "ftp";
            baseUrl.SetAuthority("tray:[email protected]:2021");
            baseUrl.SetFragment("#question13");

            Assert.AreEqual("tray:[email protected]:2021", baseUrl.Authority());
        }