Exemple #1
0
        public void Rejects_Less_Than_One_Elements()
        {
            int[] digits = new int[0];

            Assert.That(() => LuhnFormula.GetCheckDigit(digits), Throws.InstanceOf <ArgumentOutOfRangeException>());
        }
Exemple #2
0
 public void Rejects_Null()
 {
     Assert.That(() => LuhnFormula.GetCheckDigit(null), Throws.ArgumentNullException);
 }