Esempio n. 1
0
 public void testTwoAccount()
 {
     Customer Mike = new Customer("Mike")
             .openAccount(new Account(Account.SAVINGS));
     Mike.openAccount(new Account(Account.CHECKING));
     Assert.AreEqual(2, Mike.getNumberOfAccounts());
 }
Esempio n. 2
0
        public void testThreeAcounts()
        {
            Customer Mike = new Customer("Mike")
                            .openAccount(new Account(Account.SAVINGS));

            Mike.openAccount(new Account(Account.CHECKING));
            Assert.AreEqual(3, Mike.getNumberOfAccounts());
        }
Esempio n. 3
0
        public void testOneAccount()
        {
            Customer Mike = new Customer("Mike").openAccount(new Account(Account.SAVINGS));

            Assert.AreEqual(1, Mike.getNumberOfAccounts());
        }
Esempio n. 4
0
 public void testOneAccount()
 {
     Customer Mike = new Customer("Mike").openAccount(new Account(Account.SAVINGS));
     Assert.AreEqual(1, Mike.getNumberOfAccounts());
 }