public void Address() { IrcServerEndPoint point = new IrcServerEndPoint(address1, port1); Assert.AreEqual(address1, point.Address); point.Address = address2; Assert.AreEqual(address2, point.Address); Assert.AreEqual(ip2, point.GetIPAddress()); }
public void IsIdentDRequired() { IrcServerEndPoint point = new IrcServerEndPoint(address1, port1); Assert.IsFalse(point.IsIdentDRequired); point.IsIdentDRequired = true; Assert.IsTrue(point.IsIdentDRequired); point.IsIdentDRequired = false; Assert.IsFalse(point.IsIdentDRequired); }
public void Constructor() { IrcServerEndPoint point = new IrcServerEndPoint(address1, port1); Assert.IsNotNull(point); Assert.IsInstanceOf(typeof(IrcServerEndPoint), point); Assert.AreEqual(address1, point.Address); Assert.AreEqual(ip1, point.GetIPAddress()); Assert.AreEqual(port1, point.Port); point = new IrcServerEndPoint(address2, port2); Assert.AreEqual(address2, point.Address); Assert.AreEqual(ip2, point.GetIPAddress()); Assert.AreEqual(port2, point.Port); point = new IrcServerEndPoint(ip2, port2); Assert.AreEqual(ip2, point.GetIPAddress()); Assert.AreEqual(port2, point.Port); }
public void Password() { IrcServerEndPoint point = new IrcServerEndPoint(address1, port1); Assert.IsNull(point.Password); point.Password = "******"; Assert.AreEqual("secret", point.Password); point.Password = "******"; Assert.AreEqual("private", point.Password); }