forked from selfmadecode/world.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMozambiqueTest.cs
More file actions
49 lines (45 loc) · 1.54 KB
/
Copy pathMozambiqueTest.cs
File metadata and controls
49 lines (45 loc) · 1.54 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
namespace World.Net.UnitTests.Countries;
public sealed class MozambiqueTest : AssertCountryTestBase
{
private const string COUNTRY_NAME = "Mozambique";
private const string OFFICIAL_NAME = "Republic of Mozambique";
private const string NATIVE_NAME = "Moçambique";
private const string CAPITAL = "Maputo";
private const string ISO2_CODE = "MZ";
private const string ISO3_CODE = "MOZ";
private const int NUMERIC_CODE = 508;
private readonly string[] CALLING_CODE = ["+258"];
private const CountryIdentifier EXPECTEDID = CountryIdentifier.Mozambique;
private static readonly (string Name, string IsoCode, string Type)[] EXPECTED_STATES =
{
("Cabo Delgado", "MZ-P", "Province"),
("Gaza", "MZ-G", "Province"),
("Inhambane", "MZ-I", "Province"),
("Manica", "MZ-B", "Province"),
("Maputo Province", "MZ-L", "Province"),
("Maputo City", "MZ-MPM", "City"),
("Nampula", "MZ-N", "Province"),
("Niassa", "MZ-A", "Province"),
("Sofala", "MZ-S", "Province"),
("Tete", "MZ-T", "Province"),
("Zambezia", "MZ-Q", "Province")
};
[Fact]
public void GetCountry_ReturnsCorrectInformation_ForMozambique()
{
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
);
}
}