Пример #1
0
void BankTest::depositMoney()
{
    Bank b;
    int clientID = 10;
    Money m(5, "USD");

    b.deposit(clientID, m);
    QCOMPARE(Money(5, "USD"), b.accountBalance(clientID));
    QCOMPARE(1, b.numberOfClients());
}
Пример #2
0
void BankTest::emptyBankHasZeroClients()
{
    Bank b;
    QCOMPARE(0, b.numberOfClients());
}