public void TestAuthority() { foreach ( QUrl.ComponentFormattingOption formatting in Enum.GetValues(typeof(QUrl.ComponentFormattingOption))) { var s = _qUrl.Authority(formatting); Assert.IsNotNullOrEmpty(s, "Problem in enum: " + formatting.ToString()); } }
public void TestSetAuthority() { var baseUrl = new QUrl(); baseUrl.Scheme = "ftp"; baseUrl.SetAuthority("tray:[email protected]:2021"); baseUrl.SetFragment("#question13"); Assert.AreEqual("tray:[email protected]:2021", baseUrl.Authority()); }