forked from selfmadecode/world.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSaintBarthelemyTest.cs
More file actions
42 lines (38 loc) · 1.28 KB
/
SaintBarthelemyTest.cs
File metadata and controls
42 lines (38 loc) · 1.28 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
namespace World.Net.UnitTests.Countries;
public sealed class SaintBarthelemyTest : AssertCountryTestBase
{
private const string COUNTRY_NAME = "Saint-Barthélemy";
private const string NATIVE_NAME = "Saint-Barthélemy";
private const string CAPITAL = "Gustavia";
private const string OFFICIAL_NAME = "Collectivity of Saint-Barthélemy";
private const string ISO2_CODE = "BL";
private const string ISO3_CODE = "BLM";
private const int NUMERIC_CODE = 652;
private readonly string[] CALLING_CODE = ["+590"];
private const CountryIdentifier EXPECTEDID = CountryIdentifier.SaintBarthelemy;
private static readonly (string Name, string IsoCode, string Type)[] EXPECTED_STATES =
[
new("Saint-Barthélemy", "BL-BL", "Territory")
];
[Fact]
public void GetCountry_ReturnsCorrectInformation_ForSaintBarthelemy()
{
// Arrange
// Act
var country = CountryProvider.GetCountry(EXPECTEDID);
// Assert
AssertCorrectInformation(
country,
EXPECTEDID,
COUNTRY_NAME,
OFFICIAL_NAME,
NATIVE_NAME,
CAPITAL,
NUMERIC_CODE,
ISO2_CODE,
ISO3_CODE,
CALLING_CODE,
EXPECTED_STATES
);
}
}