Exemple #1
0
 public void Add_1000_credit_and_400_debit_should_give_600_for_last_balance()
 {
     _bankAccount.AddCredit(1000);
     _bankAccount.AddDebit(400);
     _bankAccount.Print(_printer);
     Check.That(_printer.Statements.Count).Equals(2);
     Check.That(_printer.Statements[0].ToString())
     .Equals("01/01/2016 ||          || 400.00   || 600.00   ");
     Check.That(_printer.Statements[1].ToString())
     .Equals("01/01/2016 || 1000.00  ||          || 1000.00  ");
 }