Ejemplo n.º 1
0
        public void TestEquals()
        {
            var endPoint1 = new IPEndPoint(IPAddress.Parse("192.168.137.106"), 51850);
            var endPoint2 = new IPEndPoint(IPAddress.Parse("192.168.137.106"), 51850);

            Assert.IsTrue(endPoint1.Compare(endPoint2, true));
        }
Ejemplo n.º 2
0
 public void CompareNotEqual1()
 {
     for (var i = 0; i < 100000; i++)
     {
         var endPoint1 = new IPEndPoint(IPAddress.Parse("192.168.137.106"), 51850);
         var endPoint2 = new IPEndPoint(IPAddress.Parse("188.13.68.77"), 8303);
         var equals    = endPoint1.Compare(endPoint2, true);
     }
 }