BIZMONT / KottansTask

0 stars 0 forks source link

Vendor should be Unknown but it isn't #4

Closed kakarotto67 closed 8 years ago

kakarotto67 commented 8 years ago

Pass "50000000000006114" into GetCreditCardVendor method Expected result: Unknown (as it has 17 digits) Actual result: Maestro

BIZMONT commented 8 years ago

For Maestro cards, this should not be an issue. Because Maestro has card number length from 12 to 19 digits. Wiki

kakarotto67 commented 8 years ago

Yeah, number matches your regex and length, but it isn't valid at all. Pass it to your IsCreditCardNumberValid method and you will see it.