forked from selfmadecode/world.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyanmarTest.cs
More file actions
53 lines (49 loc) · 1.66 KB
/
MyanmarTest.cs
File metadata and controls
53 lines (49 loc) · 1.66 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
50
51
52
53
namespace World.Net.UnitTests.Countries;
public sealed class MyanmarTest : AssertCountryTestBase
{
private const string COUNTRY_NAME = "Myanmar";
private const string OFFICIAL_NAME = "Republic of the Union of Myanmar";
private const string NATIVE_NAME = "မြန်မာ";
private const string CAPITAL = "Naypyidaw";
private const string ISO2_CODE = "MM";
private const string ISO3_CODE = "MMR";
private const int NUMERIC_CODE = 104;
private readonly string[] CALLING_CODE = ["+95"];
private const CountryIdentifier EXPECTEDID = CountryIdentifier.Myanmar;
private static readonly (string Name, string IsoCode, string Type)[] EXPECTED_STATES =
{
("Ayeyarwady", "MM-07", "Region"),
("Bago", "MM-02", "Region"),
("Chin", "MM-14", "State"),
("Kachin", "MM-11", "State"),
("Kayah", "MM-12", "State"),
("Kayin", "MM-13", "State"),
("Magway", "MM-03", "Region"),
("Mandalay", "MM-04", "Region"),
("Mon", "MM-15", "State"),
("Naypyidaw", "MM-18", "Union Territory"),
("Rakhine", "MM-16", "State"),
("Sagaing", "MM-01", "Region"),
("Shan", "MM-17", "State"),
("Tanintharyi", "MM-05", "Region"),
("Yangon", "MM-06", "Region")
};
[Fact]
public void GetCountry_ReturnsCorrectInformation_ForMyanmar()
{
var country = CountryProvider.GetCountry(EXPECTEDID);
AssertCorrectInformation(
country,
EXPECTEDID,
COUNTRY_NAME,
OFFICIAL_NAME,
NATIVE_NAME,
CAPITAL,
NUMERIC_CODE,
ISO2_CODE,
ISO3_CODE,
CALLING_CODE,
EXPECTED_STATES
);
}
}