예제 #1
0
 public void Rejects_Null()
 {
     Assert.That(() => LuhnFormula.GetCheckDigit(null), Throws.ArgumentNullException);
 }
예제 #2
0
        public void Rejects_Less_Than_One_Elements()
        {
            int[] digits = new int[0];

            Assert.That(() => LuhnFormula.GetCheckDigit(digits), Throws.InstanceOf <ArgumentOutOfRangeException>());
        }
예제 #3
0
 public void Rejects_Null()
 => Assert.That(() => LuhnFormula.IsValid((int[]?)null), Throws.ArgumentNullException);