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()); }
public void TestHost() { Assert.AreEqual("ftp.example.com", _qUrl.Host()); }