forked from selfmadecode/world.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSaintMartinTest.cs
More file actions
50 lines (45 loc) · 1.52 KB
/
SaintMartinTest.cs
File metadata and controls
50 lines (45 loc) · 1.52 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace World.Net.UnitTests.Countries
{
public sealed class SaintMartinTest : AssertCountryTestBase
{
private const string COUNTRY_NAME = "Saint-Martin";
private const string NATIVE_NAME = "Saint-Martin";
private const string CAPITAL = "Marigot";
private const string OFFICIAL_NAME = "Collectivity of Saint-Martin";
private const string ISO2_CODE = "MF";
private const string ISO3_CODE = "MAF";
private const int NUMERIC_CODE = 663;
private readonly string[] CALLING_CODE = ["+590"];
private const CountryIdentifier EXPECTEDID = CountryIdentifier.SaintMartinFrenchPart;
private static readonly (string Name, string IsoCode, string Type)[] EXPECTED_STATES =
[
new("Saint-Martin", "MF-MF", "Territory")
];
[Fact]
public void GetCountry_ReturnsCorrectInformation_ForSaintMartin()
{
// 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
);
}
}
}