Exemple #1
0
        public void TestCheckMatchNone()
        {
            var FourDigits = new List <Digit>
            {
                new Digit {
                    DigitValue = "4"
                },
                new Digit {
                    DigitValue = "3"
                },
                new Digit {
                    DigitValue = "2"
                },
                new Digit {
                    DigitValue = "1"
                },
            };

            Assert.AreEqual("", CheckDigits.Check("5656", FourDigits));
        }
Exemple #2
0
        public void TestCheckMatch1()
        {
            var FourDigits = new List <Digit>
            {
                new Digit {
                    DigitValue = "4"
                },
                new Digit {
                    DigitValue = "3"
                },
                new Digit {
                    DigitValue = "2"
                },
                new Digit {
                    DigitValue = "1"
                },
            };

            Assert.AreEqual("+---", CheckDigits.Check("4213", FourDigits));
        }