Skip to content

Commit

Permalink
Update CountryInfo_Europe_Tests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorPilley committed Apr 15, 2024
1 parent 8df2a4d commit 3f59d95
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/PhoneNumbers.Tests/CountryInfo_Europe_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,26 @@ public void CountryInfo_Belgium()
Assert.Equal("0", countryInfo.TrunkPrefix);
}

[Fact]
public void CountryInfo_BosniaAndHerzegovina()
{
Assert.Same(CountryInfo.BosniaAndHerzegovina, CountryInfo.BosniaAndHerzegovina);

var countryInfo = CountryInfo.BosniaAndHerzegovina;

Assert.False(countryInfo.AllowsLocalGeographicDialling);
Assert.Equal("387", countryInfo.CallingCode);
Assert.Equal(CountryInfo.Europe, countryInfo.Continent);
Assert.IsType<ComplexPhoneNumberFormatProvider>(countryInfo.FormatProvider);
Assert.False(countryInfo.IsEuropeanUnionMember);
Assert.Equal("BA", countryInfo.Iso3166Code);
Assert.Equal("Bosnia and Herzegovina", countryInfo.Name);
Assert.Equal(new[] { 2 }, countryInfo.NdcLengths);
Assert.Equal(new[] { 8 }, countryInfo.NsnLengths);
Assert.False(countryInfo.SharesCallingCode);
Assert.Equal("0", countryInfo.TrunkPrefix);
}

[Fact]
public void CountryInfo_Bulgaria()
{
Expand Down

0 comments on commit 3f59d95

Please sign in to comment.