示例#1
0
        public void TestSetPath()
        {
            var baseUrl = new QUrl();

            baseUrl.Scheme = "ftp";
            baseUrl.SetAuthority("tray:[email protected]:2021");
            baseUrl.SetFragment("#question13");
            baseUrl.SetHost("ftp.example.com");
            baseUrl.SetPassword("5uQQo_f2");
            baseUrl.SetPath("/pub/something/");

            Assert.AreEqual("/pub/something/", baseUrl.Path());
        }
示例#2
0
        public void TestSetPath()
        {
            var baseUrl = new QUrl();
            baseUrl.Scheme = "ftp";
            baseUrl.SetAuthority("tray:[email protected]:2021");
            baseUrl.SetFragment("#question13");
            baseUrl.SetHost("ftp.example.com");
            baseUrl.SetPassword("5uQQo_f2");
            baseUrl.SetPath("/pub/something/");

            Assert.AreEqual("/pub/something/", baseUrl.Path());
        }
示例#3
0
 public void TestPath()
 {
     var p = _qUrl.Path();
     // TODO
     //Assert.AreEqual("5uQQo_f", p);
 }