|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using System.Text; |
| 5 | +using System.Threading.Tasks; |
| 6 | + |
| 7 | +namespace World.Net.UnitTests.Countries |
| 8 | +{ |
| 9 | + public class MacauSARTest : AssertCountryTestBase |
| 10 | + { |
| 11 | + public static CountryIdentifier Id => CountryIdentifier.MacauSAR; |
| 12 | + public string Name { get; } = "Macau S.A.R."; |
| 13 | + public string OfficialName { get; } = "Macao Special Administrative Region of the People's Republic of China"; |
| 14 | + public string NativeName { get; } = "中華人民共和國澳門特別行政區"; |
| 15 | + public string Capital { get; } = "Macau"; |
| 16 | + public int NumericCode { get; } = 446; |
| 17 | + public string ISO2Code { get; } = "MO"; |
| 18 | + public string ISO3Code { get; } = "MAC"; |
| 19 | + public string[] CallingCode { get; } = ["+853"]; |
| 20 | + private static readonly (string Name, string IsoCode, string Type)[] States = |
| 21 | + [ |
| 22 | + new("Macau Peninsula", "MO-PN", "Region"), |
| 23 | + new("Taipa", "MO-TA", "Region"), |
| 24 | + new("Coloane", "MO-CO", "Region"), |
| 25 | + new("Cotai", "MO-CT", "Region") |
| 26 | + ]; |
| 27 | + |
| 28 | + |
| 29 | + [Fact] |
| 30 | + public void GetCountry_ReturnsCorrectInformation_ForMacauSAR() |
| 31 | + { |
| 32 | + var country = CountryProvider.GetCountry(Id); |
| 33 | + |
| 34 | + AssertCorrectInformation( |
| 35 | + country, |
| 36 | + Id, |
| 37 | + Name, |
| 38 | + OfficialName, |
| 39 | + NativeName, |
| 40 | + Capital, |
| 41 | + NumericCode, |
| 42 | + ISO2Code, |
| 43 | + ISO3Code, |
| 44 | + CallingCode, |
| 45 | + States |
| 46 | + ); |
| 47 | + } |
| 48 | + } |
| 49 | +} |
0 commit comments