public void Test_ctor4() { var conSet = new ConnectivitySettings("host", 1111, "login", "password", ProxyType.Socks4); Assert.IsNotNull(conSet); Assert.AreEqual("host", conSet.ProxyHost); Assert.AreEqual(1111, conSet.ProxyPort); Assert.AreEqual("login", conSet.ProxyUsername); Assert.AreEqual("password", conSet.ProxyPassword); Assert.AreEqual(ProxyType.Socks4, conSet.ProxyType); Assert.AreEqual("{ProxyHost=host, ProxyPort=1111}", conSet.ToString()); conSet.ProxyHost = "testhost"; Assert.AreEqual("testhost", conSet.ProxyHost); conSet.ProxyPort = 2222; Assert.AreEqual(2222, conSet.ProxyPort); conSet.ProxyUsername = "******"; Assert.AreEqual("testuser", conSet.ProxyUsername); conSet.ProxyPassword = "******"; Assert.AreEqual("testpass", conSet.ProxyPassword); conSet.ProxyType = ProxyType.Socks5; Assert.AreEqual(ProxyType.Socks5, conSet.ProxyType); }
public ConnectivitySettings(ConnectivitySettings x) { fProxyType = x.fProxyType; fProxyHost = x.fProxyHost; fProxyPort = x.fProxyPort; fProxyUsername = x.fProxyUsername; fProxyPassword = x.fProxyPassword; fWebProxy = x.fWebProxy; }
public void Test_ctor() { var conSet = new ConnectivitySettings(); Assert.IsNotNull(conSet); }
public void Test_ctor3() { var conSet = new ConnectivitySettings("host", 1111, "login", "password", ProxyType.Socks4); Assert.IsNotNull(conSet); }