-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathBulgariaTest.cs
More file actions
38 lines (35 loc) · 1.63 KB
/
BulgariaTest.cs
File metadata and controls
38 lines (35 loc) · 1.63 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
namespace World.Net.UnitTests.Countries
{
public sealed class BulgariaTest
{
private const string BULGARIA_NAME = "Bulgaria";
private const int BULGARIA_STATE_COUNT = 28;
private const string BULGARIA_OFFICIAL_NAME = "Republic of Bulgaria";
private const string BULGARIA_NATIVE_NAME = "България";
private const string BULGARIA_CAPITAL = "Sofia";
private const int BULGARIA_NUMERIC_CODE = 100;
private const string BULGARIA_ISO2_CODE = "BG";
private const string BULGARIA_ISO3_CODE = "BGR";
private readonly string[] BULGARIA_CALLING_CODE = ["+359"];
[Fact]
public void GetCountry_ReturnsCorrectInformation_for_Bulgaria()
{
// Arrange
CountryIdentifier existingCountryId = CountryIdentifier.Bulgaria;
// Act
var country = CountryProvider.GetCountry(existingCountryId);
//Assert
Assert.Equal(existingCountryId, country.Id);
Assert.Equal(BULGARIA_NAME, country.Name);
Assert.NotNull(country.States);
Assert.Equal(BULGARIA_STATE_COUNT, country.States.Count());
Assert.Equal(BULGARIA_OFFICIAL_NAME, country.OfficialName);
Assert.Equal(BULGARIA_NATIVE_NAME, country.NativeName);
Assert.Equal(BULGARIA_CAPITAL, country.Capital);
Assert.Equal(BULGARIA_NUMERIC_CODE, country.NumericCode);
Assert.Equal(BULGARIA_ISO2_CODE, country.ISO2Code);
Assert.Equal(BULGARIA_ISO3_CODE, country.ISO3Code);
Assert.Equal(BULGARIA_CALLING_CODE, country.CallingCode);
}
}
}