public void TestIsPossibleShortNumber() { var possibleNumber = new PhoneNumber.Builder().SetCountryCode(33).SetNationalNumber(123456L).Build(); Assert.True(ShortInfo.IsPossibleShortNumber(possibleNumber)); Assert.True( ShortInfo.IsPossibleShortNumberForRegion(Parse("123456", RegionCode.FR), RegionCode.FR)); var impossibleNumber = new PhoneNumber.Builder().SetCountryCode(33).SetNationalNumber(9L).Build(); Assert.False(ShortInfo.IsPossibleShortNumber(impossibleNumber)); // Note that GB and GG share the country calling code 44, and that this number is possible but // not valid. Assert.True(ShortInfo.IsPossibleShortNumber( new PhoneNumber.Builder().SetCountryCode(44).SetNationalNumber(11001L).Build())); }