public void TransferFunds() { //act source.TransferFunds(destination, 100.00F); // assert - verify Assert.AreEqual(250.00F, destination.Balance); Assert.AreEqual(100.00F, source.Balance); }
public void TransferFunds() { Account source = new Account(); source.Deposit(200.00F); Account destination = new Account(); destination.Deposit(150.00F); source.TransferFunds(destination, 100.00F); Assert.AreEqual(250.00F, destination.Balance); Assert.AreEqual(100.00F, source.Balance); }
public void TransferFunds() { source.TransferFunds(destination, 100.00f); Assert.AreEqual(250.00F, destination.Balance); Assert.AreEqual(100.00F, source.Balance); }
public void the_balance_of_the_source_account_should_not_change() { var source = new Account(); source.Deposit(200.00F); var destination = new Account(); destination.Deposit(150.00F); source.TransferFunds(destination, 201.00F); Assert.AreEqual(200.00F, source.Balance); }
public void the_Amount_should_be_withdrawn_from_the_source_account() { var source = new Account(); source.Deposit(200.00F); var destination = new Account(); destination.Deposit(150.00F); source.TransferFunds(destination, 100.00F); Assert.AreEqual(100.00F, source.Balance); }
public void the_Amount_should_be_deposited_into_the_destination_account() { var source = new Account(); source.Deposit(200.00F); var destination = new Account(); destination.Deposit(150.00F); source.TransferFunds(destination, 100.00F); Assert.AreEqual(250.00F, destination.Balance); }