public void testFixAMEX() { StringTheory theory = new StringTheory("341111111111111"); Assert.True(theory.Fix(Credit.AMEX), "Couldn't fix test data to make it AMEX."); Assert.True(theory.Rx.Matches(Credit.AMEX), "AMEX fix didn't work correctly:" + theory); }
public void testFix() { StringTheory theory = new StringTheory("5555-5555-5555-4444"); theory.Fix(Credit.MasterCard); Assert.True(theory.Rx.Matches(Credit.MC_WITH_DASHES), "fix failed: " + theory); }