Exemple #1
0
 public void Is_Ip_Address_In_Range()
 {
     Assert.That(IpAddress.IsIpAddressInRange("192.168.167.0", "192.168.167.255", "192.168.167.100"), Is.True);
     Assert.That(IpAddress.IsIpAddressInRange("192.168.167.0", "192.168.167.100", "192.168.167.100"), Is.True);
     Assert.That(IpAddress.IsIpAddressInRange("192.168.167.0", "192.168.167.255", "192.10.10.100"), Is.False);
     Assert.That(IpAddress.IsIpAddressInRange("192.168.167.0", "192.168.167.100", "10.10.10.10"), Is.False);
 }