Пример #1
0
        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));
        }
Пример #2
0
        public void Valider_SIRET_false()
        {
            var inValid = "4444333322221112";

            Assert.IsFalse(SIRETService.ValiderSIRET(inValid));
        }
Пример #3
0
        public void Valider_SIRET_true()
        {
            var valid = "4444333322221111";

            Assert.IsTrue(SIRETService.ValiderSIRET(valid));
        }
Пример #4
0
        public void Valider_SIRET_aca_true()
        {
            var aca = "79447771100012";

            Assert.IsTrue(SIRETService.ValiderSIRET(aca));
        }
Пример #5
0
        public void Valider_SIRET_aca_false()
        {
            var aca = "79447771100013";

            Assert.IsFalse(SIRETService.ValiderSIRET(aca));
        }
Пример #6
0
        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));
        }
Пример #7
0
        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));
        }
Пример #8
0
        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));
        }