-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEstoniaTest.cs
More file actions
57 lines (55 loc) · 2.1 KB
/
EstoniaTest.cs
File metadata and controls
57 lines (55 loc) · 2.1 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
54
55
56
57
namespace World.Net.UnitTests.Countries
{
public sealed class EstoniaTest : AssertCountryTestBase
{
private const string ESTONIA_NAME = "Estonia";
private const int ESTONIA_STATE_COUNT = 15;
private const string ESTONIA_OFFICIAL_NAME = "Republic of Estonia";
private const string ESTONIA_NATIVE_NAME = "Eesti";
private const string ESTONIA_CAPITAL = "Tallinn";
private const int ESTONIA_NUMERIC_CODE = 233;
private const string ESTONIA_ISO2_CODE = "EE";
private const string ESTONIA_ISO3_CODE = "EST";
private readonly string[] ESTONIA_CALLING_CODE = ["372"];
private static CountryIdentifier ExpectedId => CountryIdentifier.Estonia;
private static readonly (string Name, string IsoCode, string Type)[] ExpectedStates =
{
new("Harju", "37", "County"),
new("Hiiu", "39", "County"),
new("Ida-Viru", "44", "County"),
new("Jõgeva", "49", "County"),
new("Järva", "51", "County"),
new("Lääne", "57", "County"),
new("Lääne-Viru", "59", "County"),
new("Põlva", "65", "County"),
new("Pärnu", "67", "County"),
new("Rapla", "70", "County"),
new("Saare", "74", "County"),
new("Tartu", "78", "County"),
new("Valga", "82", "County"),
new("Viljandi", "84", "County"),
new("Võru", "86", "County")
};
[Fact]
public void GetCountry_ReturnsCorrectInformation_ForEstonia()
{
// Arrange
// Act
var country = CountryProvider.GetCountry(ExpectedId);
// Assert
AssertCorrectInformation(
country,
ExpectedId,
ESTONIA_NAME,
ESTONIA_OFFICIAL_NAME,
ESTONIA_NATIVE_NAME,
ESTONIA_CAPITAL,
ESTONIA_NUMERIC_CODE,
ESTONIA_ISO2_CODE,
ESTONIA_ISO3_CODE,
ESTONIA_CALLING_CODE,
ExpectedStates
);
}
}
}