- migrate both test modules to the new options: RemoveCountry / RemoveProvince
name arrays instead of the previous UseCountry / UseProvince predicates
- add IPLocationRemarksTest: a table driven test for the shared remark rules with one
dedicated address per case (IPv4 and IPv6), covering
* nothing configured -> country only (中国)
* country matches RemoveCountry -> province + city (浙江省杭州市), same-name
collapse (重庆市), province only (香港特别行政区), country data only -> empty remarks
* country does not match -> unchanged (日本, 德国)
* province matches RemoveProvince -> city only (吉林市), no city -> empty remarks,
and it also applies to non-Chinese addresses (2001:200::1 -> 新宿区)
* province takes precedence over country (8.8.8.8 -> 杭州市)
- update the provider expectations for the new rules:
* IP2Region: 220.246.0.1 -> 香港特别行政区 (was 中国香港特别行政区);
the physical file test now expects the default country-only remark (中国)
* MaxMind: the two "country data only" cases (114.114.114.114, 180.76.76.76) moved to
TestSearchRemovedCountryOnly, which asserts Country == "中国" while Remarks is empty
No production code changes; these tests pin the shared rules implemented in
LINGYUN.Abp.IP.Location.
Verified: dotnet test LINGYUN.Abp.IP2Region.Tests (85 passed) and
LINGYUN.Abp.MaxMindGeoIP2.Tests (42 passed), 0 failed.