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