public void SubnetMaskLengthTest_Valid()
    {
        var range = new IPAddressRange(IPAddress.Parse("192.168.75.23"), IPAddressRange.SubnetMaskLength(IPAddress.Parse("255.255.254.0")));

        range.Begin.ToString().Is("192.168.74.0");
        range.End.ToString().Is("192.168.75.255");
    }
 public void SubnetMaskLengthTest_Invalid()
 {
     AssertEx.Throws <ArgumentException>(() =>
                                         new IPAddressRange(IPAddress.Parse("192.168.75.23"), IPAddressRange.SubnetMaskLength(IPAddress.Parse("255.255.54.0"))));
 }