public void Rejects_Less_Than_One_Elements() { int[] digits = new int[0]; Assert.That(() => LuhnFormula.GetCheckDigit(digits), Throws.InstanceOf <ArgumentOutOfRangeException>()); }
public void Rejects_Null() { Assert.That(() => LuhnFormula.GetCheckDigit(null), Throws.ArgumentNullException); }