-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathBruneiTest.cs
More file actions
38 lines (35 loc) · 1.62 KB
/
BruneiTest.cs
File metadata and controls
38 lines (35 loc) · 1.62 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 BruneiTest
{
private const string BRUNEI_NAME = "Brunei";
private const int BRUNEI_STATE_COUNT = 4;
private const string BRUNEI_OFFICIAL_NAME = "Nation of Brunei, the Abode of Peace";
private const string BRUNEI_NATIVE_NAME = "Negara Brunei Darussalam";
private const string BRUNEI_CAPITAL = "Bandar Seri Begawan";
private const int BRUNEI_NUMERIC_CODE = 096;
private const string BRUNEI_ISO2_CODE = "BN";
private const string BRUNEI_ISO3_CODE = "BRN";
private readonly string[] BRUNEI_CALLING_CODE = ["+673"];
[Fact]
public void GetCountry_ReturnsCorrectInformation_for_Brunei()
{
// Arrange
CountryIdentifier existingCountryId = CountryIdentifier.Brunei;
// Act
var country = CountryProvider.GetCountry(existingCountryId);
//Assert
Assert.Equal(existingCountryId, country.Id);
Assert.Equal(BRUNEI_NAME, country.Name);
Assert.NotNull(country.States);
Assert.Equal(BRUNEI_STATE_COUNT, country.States.Count());
Assert.Equal(BRUNEI_OFFICIAL_NAME, country.OfficialName);
Assert.Equal(BRUNEI_NATIVE_NAME, country.NativeName);
Assert.Equal(BRUNEI_CAPITAL, country.Capital);
Assert.Equal(BRUNEI_NUMERIC_CODE, country.NumericCode);
Assert.Equal(BRUNEI_ISO2_CODE, country.ISO2Code);
Assert.Equal(BRUNEI_ISO3_CODE, country.ISO3Code);
Assert.Equal(BRUNEI_CALLING_CODE, country.CallingCode);
}
}
}