public void ContainsTest(string network, string test, bool shouldContain) { IpAddressNetworkV6 net = (IpAddressNetworkV6)network; IpAddressV6 ip = (IpAddressV6)test; if (shouldContain) { net.Contains(ip).Should().BeTrue(); } else { net.Contains(ip).Should().BeFalse(); } }
public bool IsContainedIn(IpAddressNetworkV6 other) { return(other.Contains(this)); }
public bool NetworkContainsLong() => _net2.Contains(_address2);
public bool IsContainedIn(IpAddressNetworkV6 network) => network.Contains(this);
public bool NetworkContainsShort() => _net1.Contains(_address1);