public void Invalid_numbers_should_fail() { var inValid = new byte[] { 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 2 }; Assert.IsFalse(SIRETService.Validate(inValid)); }
public void Valider_SIRET_false() { var inValid = "4444333322221112"; Assert.IsFalse(SIRETService.ValiderSIRET(inValid)); }
public void Valider_SIRET_true() { var valid = "4444333322221111"; Assert.IsTrue(SIRETService.ValiderSIRET(valid)); }
public void Valider_SIRET_aca_true() { var aca = "79447771100012"; Assert.IsTrue(SIRETService.ValiderSIRET(aca)); }
public void Valider_SIRET_aca_false() { var aca = "79447771100013"; Assert.IsFalse(SIRETService.ValiderSIRET(aca)); }
public void Valid_numbers_should_pass_aca() { var valid = new byte[] { 7, 9, 4, 4, 7, 7, 7, 1, 1, 0, 0, 0, 1, 2 }; Assert.IsTrue(SIRETService.Validate(valid)); }
public void Valid_numbers_should_pass() { var valid = new byte[] { 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1 }; Assert.IsTrue(SIRETService.Validate(valid)); }
public void Invalid_numbers_should_fail_aca() { var valid = new byte[] { 7, 9, 4, 4, 7, 7, 7, 1, 1, 0, 0, 0, 1, 3 }; Assert.IsFalse(SIRETService.Validate(valid)); }