-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEquatorialGuineaTest.cs
More file actions
50 lines (47 loc) · 2 KB
/
EquatorialGuineaTest.cs
File metadata and controls
50 lines (47 loc) · 2 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
namespace World.Net.UnitTests.Countries
{
public class EquatorialGuineaTest : AssertCountryTestBase
{
private const string EQUATORIALGUINEA_NAME = "EquatorialGuinea";
private const string EQUATORIALGUINEA_OFFICIAL_NAME = "Republic of Equatorial Guinea";
private const string EQUATORIALGUINEA_NATIVE_NAME = "República de Guinea Ecuatorial";
private const string EQUATORIALGUINEA_CAPITAL = "Malabo";
private const int EQUATORIALGUINEA_NUMERIC_CODE = 226;
private const string EQUATORIALGUINEA_ISO2_CODE = "GQ";
private const string EQUATORIALGUINEA_ISO3_CODE = "GNQ";
private readonly string[] EQUATORIALGUINEA_CALLING_CODE = ["240"];
private static CountryIdentifier ExpectedId => CountryIdentifier.EquatorialGuinea;
private static readonly (string Name, string IsoCode, string Type)[] ExpectedStates =
{
new("Annobón", "AN", "Province"),
new("Bioko Norte", "BN", "Province"),
new("Bioko Sur", "BS", "Province"),
new("Centro Sur", "CS", "Province"),
new("Djibloho", "DJ", "Province"),
new("Kié-Ntem", "KN", "Province"),
new("Litoral", "LI", "Province"),
new("Wele-Nzas", "WN", "Province")
};
[Fact]
public void GetCountry_ReturnsCorrectInformation_ForEquatorialGuinea()
{
// Arrange
// Act
var country = CountryProvider.GetCountry(ExpectedId);
// Assert
AssertCorrectInformation(
country,
ExpectedId,
EQUATORIALGUINEA_NAME,
EQUATORIALGUINEA_OFFICIAL_NAME,
EQUATORIALGUINEA_NATIVE_NAME,
EQUATORIALGUINEA_CAPITAL,
EQUATORIALGUINEA_NUMERIC_CODE,
EQUATORIALGUINEA_ISO2_CODE,
EQUATORIALGUINEA_ISO3_CODE,
EQUATORIALGUINEA_CALLING_CODE,
ExpectedStates
);
}
}
}