public void GetBankCode_Throw_BbanSplitterException(string iban) { Action action = () => { var bban = GetBbanFromIBan(iban); BbanSplitterInvalidValidation.GetBankCode(TestUtil.MockNotNullCountry, bban); }; TestUtil.ExpectedException <BbanSplitterException>(action); }
public void GetBankCode_Expected_InvalidCountryException(string iban) { var bban = GetBbanFromIBan(iban); Action action1 = () => BbanSplitterValidValidation.GetBankCode(null, bban); TestUtil.ExpectedException <InvalidCountryException>(action1); Action action2 = () => BbanSplitterInvalidValidation.GetBankCode(null, bban); TestUtil.ExpectedException <InvalidCountryException>(action2); }