public void TestTopLevelDomain() { var baseUrl = new QUrl(); baseUrl.Scheme = "ftp"; baseUrl.SetAuthority("tray:[email protected]:2021"); baseUrl.SetFragment("#question13"); baseUrl.SetHost("ftp.example.com"); baseUrl.SetUserName("tray2"); baseUrl.SetPath("/pub/something/"); baseUrl.SetPort(2022); baseUrl.SetUrl(""); Assert.AreEqual(".com", baseUrl.TopLevelDomain()); }