コード例 #1
0
    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();
        }
    }
コード例 #2
0
 public bool IsContainedIn(IpAddressNetworkV6 other)
 {
     return(other.Contains(this));
 }
コード例 #3
0
 public bool NetworkContainsLong() => _net2.Contains(_address2);
コード例 #4
0
 public bool IsContainedIn(IpAddressNetworkV6 network) => network.Contains(this);
コード例 #5
0
 public bool NetworkContainsShort() => _net1.Contains(_address1);