public void PortTest() { using (SyslogUdpReceiver target = new SyslogUdpReceiver()) { int expected = 8526; int actual; target.Port = expected; actual = target.Port; Assert.AreEqual(expected, actual); Assert.AreEqual(expected.ToString(), target.GetConfigurationParameter("port")); } }
public void IpAddressTest() { using (SyslogUdpReceiver target = new SyslogUdpReceiver()) { string expected = "127.0.0.1"; string actual; target.IpAddress = expected; actual = target.IpAddress; Assert.AreEqual(expected, actual); Assert.AreEqual(expected, target.GetConfigurationParameter("ip")); } }