コード例 #1
0
        public void GetCheck1_Throw_BbanSplitterException(string iban)
        {
            Action action = () =>
            {
                var bban = GetBbanFromIBan(iban);
                BbanSplitterInvalidValidation.GetCheck1(TestUtil.MockNotNullCountry, bban);
            };

            TestUtil.ExpectedException <BbanSplitterException>(action);
        }
コード例 #2
0
        public void GetCheck1_Expected_InvalidCountryException(string iban)
        {
            var bban = GetBbanFromIBan(iban);

            Action action1 = () => BbanSplitterValidValidation.GetCheck1(null, bban);

            TestUtil.ExpectedException <InvalidCountryException>(action1);

            Action action2 = () => BbanSplitterInvalidValidation.GetCheck1(null, bban);

            TestUtil.ExpectedException <InvalidCountryException>(action2);
        }