예제 #1
0
        public void ParseIPv6ByteArray()
        {
            var _IPv4Address = IPAddressHelper.Build(new Byte[] { 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0 });

            Assert.IsTrue(_IPv4Address is IIPAddress);
            Assert.IsFalse(_IPv4Address is IPv4Address);
            Assert.IsTrue(_IPv4Address is IPv6Address);
        }
예제 #2
0
 public void ParseTooShortByteArray()
 {
     IPAddressHelper.Build(new Byte[] { 10, 0, 0 });
 }