示例#1
0
 public void ResolveCardTypeTest1()
 {
     foreach (var card in _validCards)
     {
         Assert.AreEqual(card.Value, CreditCardTypeDetector.FindType(card.Key));
     }
 }
示例#2
0
 public void ResolveCardTypeFormatCheckInvalidDash()
 {
     Assert.Throws(typeof(ArgumentException), () => CreditCardTypeDetector.FindType(_invalidCardFormatDash));
 }