Skip to content

Commit

Permalink
fix: linux encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobritodev committed Aug 12, 2021
1 parent e5216f7 commit 10893f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/NetDevPack.Brasil/Documentos/CNPJ.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using NetDevPack.Brasil.Documentos.Validacao;
using NetDevPack.Domain;
using NetDevPack.Utilities;
using NetDevPack.Brasil.Documentos.Validacao;
using System;

namespace NetDevPack.Brasil.Documentos
{
Expand All @@ -12,7 +12,7 @@ public class Cnpj
public Cnpj(string numero)
{
Numero = numero.OnlyNumbers(numero);
if (!EstaValido()) throw new DomainException("CNPJ Inválido");
if (!EstaValido()) throw new DomainException("CNPJ Invalido");
}

public override string ToString() => SemMascara();
Expand Down
6 changes: 3 additions & 3 deletions src/NetDevPack.Brasil/Documentos/Cpf.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using NetDevPack.Brasil.Documentos.Validacao;
using NetDevPack.Domain;
using NetDevPack.Utilities;
using NetDevPack.Brasil.Documentos.Validacao;
using System;

namespace NetDevPack.Brasil.Documentos
{
Expand All @@ -12,7 +12,7 @@ public class Cpf
public Cpf(string numero)
{
Numero = numero.OnlyNumbers(numero);
if (!EstaValido()) throw new DomainException("CPF Inválido");
if (!EstaValido()) throw new DomainException("CPF Invalido");
}

public override string ToString() => SemMascara();
Expand Down
4 changes: 2 additions & 2 deletions tests/NetDevPack.Brasil.Tests/Documentos/CnpjValidadorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Cnpj_PossuiDigitosRepetidos_ShouldReturnDomainException(string value
Action act = () => new Cnpj(value);

// Assert
act.Should().ThrowExactly<DomainException>().WithMessage("CNPJ Inválido");
act.Should().ThrowExactly<DomainException>().WithMessage("CNPJ Invalido");
}

[Fact(DisplayName = "Cnpj ReturnTrue")]
Expand All @@ -38,7 +38,7 @@ public void Cnpj_NewCnpj_ShouldReturnNewCnpj()
var cnpj = new Cnpj("30.221.805/0001-26");

// Act
var result = new CnpjValidador(cnpj.Numero).EstaValido();
var result = new CnpjValidador(cnpj.Numero).EstaValido();

// Assert
result.Should().BeTrue();
Expand Down
4 changes: 2 additions & 2 deletions tests/NetDevPack.Brasil.Tests/Documentos/CpfValidadorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Cpf_PossuiDigitosRepetidos_ShouldReturnDomainException(string value)
Action act = () => new Cpf(value);

// Assert
act.Should().ThrowExactly<DomainException>().WithMessage("CPF Inválido");
act.Should().ThrowExactly<DomainException>().WithMessage("CPF Invalido");
}

[Fact(DisplayName = "Cpf ReturnTrue")]
Expand All @@ -38,7 +38,7 @@ public void Cpf_NewCpf_ShouldReturnNewCpf()
var cpf = new Cpf("915.212.540-87");

// Act
var result = new CpfValidador(cpf.Numero).EstaValido();
var result = new CpfValidador(cpf.Numero).EstaValido();

// Assert
result.Should().BeTrue();
Expand Down

0 comments on commit 10893f3

Please sign in to comment.