Skip to content

Commit

Permalink
Issue #271 - Forgot to add this unit test sitting on my local drive.
Browse files Browse the repository at this point in the history
  • Loading branch information
bchavez committed Dec 25, 2019
1 parent a90cc0d commit 937cecd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Source/Bogus.Tests/GitHubIssues/Issue271.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Xunit;
using Bogus.Extensions.Brazil;
using FluentAssertions;

namespace Bogus.Tests.GitHubIssues
{
public class Issue271 : SeededTest
{
[Fact]
public void brazil_cpf_format_parameter_should_respect_person_context()
{
var p = new Bogus.Person();

p.Cpf().Should().Be("869.287.971-18");
p.Cpf(includeFormatSymbols:false).Should().Be("86928797118");
}
}
}

0 comments on commit 937cecd

Please sign in to comment.