예제 #1
0
        public void TestSetHost()
        {
            var baseUrl = new QUrl();

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

            Assert.AreEqual("ftp.example2.com", baseUrl.Host());
        }
예제 #2
0
파일: QUrlTests.cs 프로젝트: YekMX/QtSharp
        public void TestSetHost()
        {
            var baseUrl = new QUrl();
            baseUrl.Scheme = "ftp";
            baseUrl.SetAuthority("tray:[email protected]:2021");
            baseUrl.SetFragment("#question13");
            baseUrl.SetHost("ftp.example2.com");

            Assert.AreEqual("ftp.example2.com", baseUrl.Host());
        }
예제 #3
0
 public void TestHost()
 {
     Assert.AreEqual("ftp.example.com", _qUrl.Host());
 }