Skip to content

Commit

Permalink
Add unit test for #318
Browse files Browse the repository at this point in the history
  • Loading branch information
bchavez committed Aug 14, 2020
1 parent 65ab500 commit 749aa8a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Source/Bogus.Tests/GitHubIssues/Issue318.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Xunit;
using Bogus.Extensions.UnitedKingdom;
using FluentAssertions;

namespace Bogus.Tests.GitHubIssues
{
public class Issue318 : SeededTest
{
[Fact]
public void can_get_country_of_uk()
{
var f = new Faker("en_GB");
var country = f.Address.CountryOfUnitedKingdom();
country.Should().Be("Wales");
}

[Fact]
public void can_get_country_of_uk_without_locale_specified()
{
var f = new Faker();
var country = f.Address.CountryOfUnitedKingdom();
country.Should().Be("Wales");
}
}
}

0 comments on commit 749aa8a

Please sign in to comment.