Ejemplo n.º 1
0
        public void IbanUtilChangeAccountNumberShouldPadItself()
        {
            string iban    = "CZ6508000000999999999999";
            string changed = IbanUtils.ChangeAccountNumber(iban, "145399");

            Assert.AreEqual("CZ4508000000990000145399", changed);
        }
Ejemplo n.º 2
0
        public void IbanUtilChangeAccountNumber()
        {
            string iban    = "CZ6508000000999999999999";
            string changed = IbanUtils.ChangeAccountNumber(iban, "2000145399");

            Assert.AreEqual("CZ5208000000992000145399", changed);
        }
Ejemplo n.º 3
0
 public void IbanUtilChangeAccountNumberWithTooLongNumberShouldThrowException()
 {
     try
     {
         string iban    = "CZ6508000000999999999999";
         string changed = IbanUtils.ChangeAccountNumber(iban, "0000192000145399123");
     }
     catch (IbanFormatException iex)
     {
         Assert.AreEqual(IbanFormatViolation.BBAN_ENTRY_TOO_LONG, iex.FormatViolation);
     }
 }