Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DocsBr.Tests/IEAmazonasValidatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ namespace DocsBr.Tests
[TestClass]
public class IEAmazonasValidatorTests : IEValidatorTests
{
private static string[] validValues =
private static string[] validValues =
{
"04.345.678-2", "04.193.980-8", "06.200.021-7", "07.000.507-9", "04.104.862-8"
"05.480.079-0", "02.468.135-0", "05.111.222-1", "04.345.678-2", "08.642.097-6", "04.193.980-8", "06.200.021-7", "07.000.507-9", "04.104.862-8"
};

private static string[] invalidValues =
private static string[] invalidValues =
{
"04.345.678-3", "04.193.980-9", "06.200.021-8", "07.000.507-0", "04.104.862-9"
};
Expand Down
2 changes: 1 addition & 1 deletion DocsBr/Validation/IE/IEAmazonasValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private bool HasValidCheckDigits()
string number = this.inscEstadual.Substring(0, this.inscEstadual.Length - 1);

DigitoVerificador digitoVerificador = new DigitoVerificador(number)
.Substituindo("0", 0, 1);
.Substituindo("0", 10, 11);
return digitoVerificador.CalculaDigito() == this.inscEstadual.Substring(this.inscEstadual.Length - 1, 1);
}
}
Expand Down