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