|
| 1 | +namespace World.Net.UnitTests.Countries; |
| 2 | + |
| 3 | +public sealed class MarshallIslandsTest : AssertCountryTestBase |
| 4 | +{ |
| 5 | + private const string COUNTRY_NAME = "Marshall Islands"; |
| 6 | + private const string OFFICIAL_NAME = "Republic of the Marshall Islands"; |
| 7 | + private const string NATIVE_NAME = "Aelōn̄ in M̧ajeļ"; |
| 8 | + private const string CAPITAL = "Majuro"; |
| 9 | + private const string ISO2_CODE = "MH"; |
| 10 | + private const string ISO3_CODE = "MHL"; |
| 11 | + private const int NUMERIC_CODE = 584; |
| 12 | + private readonly string[] CALLING_CODE = ["+692"]; |
| 13 | + private const CountryIdentifier EXPECTEDID = CountryIdentifier.MarshallIslands; |
| 14 | + |
| 15 | + private static readonly (string Name, string IsoCode, string Type)[] EXPECTED_STATES = |
| 16 | + { |
| 17 | + ("Ailinglaplap", "MH-ALL", "Municipality"), |
| 18 | + ("Arno", "MH-ARN", "Municipality"), |
| 19 | + ("Aur", "MH-AUR", "Municipality"), |
| 20 | + ("Ebeye", "MH-EBN", "Municipality"), |
| 21 | + ("Enewetak", "MH-ENI", "Municipality"), |
| 22 | + ("Jabat", "MH-JAB", "Municipality"), |
| 23 | + ("Jaluit", "MH-JAL", "Municipality"), |
| 24 | + ("Kwajalein", "MH-KWA", "Municipality"), |
| 25 | + ("Lae", "MH-LAE", "Municipality"), |
| 26 | + ("Lib", "MH-LIB", "Municipality"), |
| 27 | + ("Likiep", "MH-LIK", "Municipality"), |
| 28 | + ("Majuro", "MH-MAJ", "Municipality"), |
| 29 | + ("Maloelap", "MH-MAL", "Municipality"), |
| 30 | + ("Mejit", "MH-MEJ", "Municipality"), |
| 31 | + ("Mili", "MH-MIL", "Municipality"), |
| 32 | + ("Namdrik", "MH-NMK", "Municipality"), |
| 33 | + ("Namu", "MH-NMU", "Municipality"), |
| 34 | + ("Rongelap", "MH-RON", "Municipality"), |
| 35 | + ("Ujae", "MH-UJA", "Municipality"), |
| 36 | + ("Utrik", "MH-UTI", "Municipality"), |
| 37 | + ("Wotho", "MH-WTH", "Municipality"), |
| 38 | + ("Wotje", "MH-WTJ", "Municipality") |
| 39 | +}; |
| 40 | + |
| 41 | + [Fact] |
| 42 | + public void GetCountry_ReturnsCorrectInformation_ForMarshallIslands() |
| 43 | + { |
| 44 | + var country = CountryProvider.GetCountry(EXPECTEDID); |
| 45 | + |
| 46 | + AssertCorrectInformation( |
| 47 | + country, |
| 48 | + EXPECTEDID, |
| 49 | + COUNTRY_NAME, |
| 50 | + OFFICIAL_NAME, |
| 51 | + NATIVE_NAME, |
| 52 | + CAPITAL, |
| 53 | + NUMERIC_CODE, |
| 54 | + ISO2_CODE, |
| 55 | + ISO3_CODE, |
| 56 | + CALLING_CODE, |
| 57 | + EXPECTED_STATES |
| 58 | + ); |
| 59 | + } |
| 60 | +} |
0 commit comments