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); }
public void ParseTooShortByteArray() { IPAddressHelper.Build(new Byte[] { 10, 0, 0 }); }