Ejemplo n.º 1
0
 public void testDebitSuccess([Values (3.50, 3.51, 350.00, 100.00)] double bal, [Values (0, 3.50)] double debit)
 {
     Account test = new Account(bal, 0, "test", "11/13/13");
     double originalBal = test.MBalance;
     test.debit(debit);
     Assert.AreEqual(test.MBalance, originalBal - debit);
 }
Ejemplo n.º 2
0
 public void testDebitFail([Values(1.00, 0.00, 5.00)] double bal, [Range(0, 100.00, 5.01)] double debit)
 {
     Account test = new Account(bal, 0, "test", "11/13/13");
     double originalBal = test.MBalance;
     test.debit(debit);
     Assert.AreEqual(test.MBalance, originalBal);
 }