Show common country names and enlarge map marker hit area
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
31cef44bf3
commit
552abffd29
6 files changed
+88
-6
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using Flypaper.Web.Components.Shared;
|
||||
using Shouldly;
|
||||
|
||||
namespace Flypaper.Tests.Web;
|
||||
|
||||
public sealed class CountryNamesTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("TW", "Republik China", "Taiwan")]
|
||||
[InlineData("CN", "Volksrepublik China", "China")]
|
||||
[InlineData("HK", "Sonderverwaltungszone Hongkong", "Hongkong")]
|
||||
[InlineData("MO", "Sonderverwaltungszone Macau", "Macau")]
|
||||
[InlineData("US", "Vereinigte Staaten von Amerika", "USA")]
|
||||
[InlineData("ru", "Russische Föderation", "Russland")]
|
||||
public void Uses_common_short_names(string code, string official, string expected) =>
|
||||
CountryNames.Display(code, official).ShouldBe(expected);
|
||||
|
||||
[Theory]
|
||||
[InlineData("DE", "Deutschland", "Deutschland")]
|
||||
[InlineData("NL", null, "NL")]
|
||||
[InlineData(null, "Unbekannt", "Unbekannt")]
|
||||
public void Keeps_other_names(string? code, string? name, string expected) =>
|
||||
CountryNames.Display(code, name).ShouldBe(expected);
|
||||
}
|
||||
Reference in new issue
Block a user