Skip to content

Commit

Permalink
Removed the [Theory] and replaced with [Fact] Trying to figure out wh…
Browse files Browse the repository at this point in the history
…y tests are passing locally but failing on appveyor bchavez#474
  • Loading branch information
acidrod committed Jul 30, 2023
1 parent e84814a commit 1de4cf6
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions Source/Bogus.Tests/ExtensionTests/ChileanRutExtensionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,26 @@ namespace Bogus.Tests.ExtensionTests
public class ChileanRutExtensionTest
{

[Theory]
[InlineData(true)] //Testing random rut using the dotFormat (11.111.111-1)
[InlineData(false)] //Testing random rut not using the dotFormat (11111111-1)
public void ChileanRutExtensionForBogusShouldBeValid(bool dotFormat)
[Fact]
public void ChileanRutExtension_Should_BeValid_When_UsingDotFormat()
{
// Arrange
var faker = new Faker<Person>()
.RuleFor(p => p.Rut, f => f.Person.Rut(dotFormat));
.RuleFor(p => p.Rut, f => f.Person.Rut(true));

// Act
var person = faker.Generate();

// Assert
InternalValidationRutHelper.IsRutValid(person.Rut).Should().Be(true);
}

[Fact]
public void ChileanRutExtension_Should_BeValid_When_NotUsingDotFormat()
{
// Arrange
var faker = new Faker<Person>()
.RuleFor(p => p.Rut, f => f.Person.Rut(false));

// Act
var person = faker.Generate();
Expand Down

0 comments on commit 1de4cf6

Please sign in to comment.