forked from selfmadecode/world.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGreenlandTest.cs
More file actions
46 lines (42 loc) · 1.58 KB
/
Copy pathGreenlandTest.cs
File metadata and controls
46 lines (42 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
namespace World.Net.UnitTests.Countries;
public sealed class GreenlandTest : AssertCountryTestBase
{
private const string GREENLAND_COUNTRY_NAME = "Greenland";
private const string GREENLAND_NATIVE_NAME = "Kalaallit Nunaat";
private const string GREENLAND_CAPITAL = "Nuuk";
private const string GREENLAND_OFFICIAL_NAME = "Greenland";
private const string GREENLAND_ISO2_CODE = "GL";
private const string GREENLAND_ISO3_CODE = "GRL";
private const int GREENLAND_NUMERIC_CODE = 304;
private readonly string[] GREENLAND_CALLING_CODE = ["+299"];
private const CountryIdentifier EXPECTEDID = CountryIdentifier.Greenland;
private static readonly (string Name, string IsoCode, string Type)[] EXPECTED_STATES =
[
new("Avannaata", "GL-AV", "Municipality"),
new("Kujalleq", "GL-KU", "Municipality"),
new("Qeqertalik", "GL-QT", "Municipality"),
new("Qeqqata", "GL-QE", "Municipality"),
new("Sermersooq", "GL-SM", "Municipality")
];
[Fact]
public void GetCountry_ReturnsCorrectInformation_ForGreenland()
{
// Arrange
// Act
var country = CountryProvider.GetCountry(EXPECTEDID);
// Assert
AssertCorrectInformation(
country,
EXPECTEDID,
GREENLAND_COUNTRY_NAME,
GREENLAND_OFFICIAL_NAME,
GREENLAND_NATIVE_NAME,
GREENLAND_CAPITAL,
GREENLAND_NUMERIC_CODE,
GREENLAND_ISO2_CODE,
GREENLAND_ISO3_CODE,
GREENLAND_CALLING_CODE,
EXPECTED_STATES
);
}
}