public void TestSetPort() { 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); Assert.AreEqual(2022, baseUrl.Port()); }
public void TestPort() { var p = _qUrl.Port(); Assert.AreEqual(2021, p); }