public void EqualsIgnoreScopeId_Test( string sip1, int port1, string sip2, int port2, bool equalsOriginal, bool equalsIgnore ) { IPAddress ip1; IPAddress.TryParse(sip1, out ip1); var ipep1 = new IPEndPoint(ip1, port1); IPAddress ip2; IPAddress.TryParse(sip2, out ip2); var ipep2 = new IPEndPoint(ip2, port2); Assert.AreEqual(equalsOriginal, ipep1.Equals(ipep2), "Equals()"); Assert.AreEqual(equalsIgnore, ipep1.EqualsIgnoreScopeId(ipep2), "EqualsIgnoreScopeId()"); }