Skip to content

Commit 749aa8a

Browse files
committed
Add unit test for #318
1 parent 65ab500 commit 749aa8a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using Xunit;
2+
using Bogus.Extensions.UnitedKingdom;
3+
using FluentAssertions;
4+
5+
namespace Bogus.Tests.GitHubIssues
6+
{
7+
public class Issue318 : SeededTest
8+
{
9+
[Fact]
10+
public void can_get_country_of_uk()
11+
{
12+
var f = new Faker("en_GB");
13+
var country = f.Address.CountryOfUnitedKingdom();
14+
country.Should().Be("Wales");
15+
}
16+
17+
[Fact]
18+
public void can_get_country_of_uk_without_locale_specified()
19+
{
20+
var f = new Faker();
21+
var country = f.Address.CountryOfUnitedKingdom();
22+
country.Should().Be("Wales");
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)