public void test_classhmethod_parse_u128() { foreach (var kp in setup().valid_ipv6) { var ip = kp.Key; var num = kp.Value; // println!(">>>{}==={}", ip, num); Assert.Equal(IPAddress.parse(ip).unwrap().to_s(), IpV6.from_int(num, 128).unwrap().to_s()); } }
public void test_method_broadcast_u128() { Assert.Equal(IpV6.from_int(BigInteger.Parse("42540766411282592875350729025363378175"), 64).unwrap(), setup().ip.broadcast()); }
public void test_method_network_u128() { Assert.Equal(IpV6.from_int(BigInteger.Parse("42540766411282592856903984951653826560"), 64).unwrap(), setup().ip.network()); }