Пример #1
0
        public void IpV6SubnetMaskDoesNotMatchInvalidIpAddress(string netMask, string ipAddress)
        {
            var ipAddressObj = IPNetAddress.Parse(netMask);

            Assert.False(ipAddressObj.Contains(IPAddress.Parse(ipAddress)));
        }
Пример #2
0
 public void TestEquals(string source, string dest)
 {
     Assert.True(IPNetAddress.Parse(source).Equals(IPNetAddress.Parse(dest)));
     Assert.True(IPNetAddress.Parse(dest).Equals(IPNetAddress.Parse(source)));
 }
Пример #3
0
        public void IpV6SubnetMaskMatchesValidIpAddress(string netMask, string ipAddress)
        {
            var ipAddressObj = IPNetAddress.Parse(netMask);

            Assert.True(ipAddressObj.Contains(IPAddress.Parse(ipAddress)));
        }