示例#1
0
        public void TestSetQuery2()
        {
            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/");
            baseUrl.SetPort(2022);
            baseUrl.SetQuery(new QUrlQuery("new"));

            Assert.AreEqual("new", baseUrl.Query());
        }
示例#2
0
        public void TestSetQuery2()
        {
            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/");
            baseUrl.SetPort(2022);
            baseUrl.SetQuery(new QUrlQuery("new"));

            Assert.AreEqual("new", baseUrl.Query());
        }
示例#3
0
        public void TestQuery()
        {
            var p = _qUrl.Query();

            Assert.AreEqual(58.ToString(), p);
        }