Section 15.8. Exercises


15.8. Exercises

Write tests for the following situations.

  1. A transaction may be canceled even when nothing has happened.

  2. A transaction may be completed even when nothing has happened.

  3. A partial payment may be made in a transaction, but the transaction cannot be completed until the rest of the payment is made.

  4. A partial refund may be made in a transaction in which a payment has been made. The transaction cannot be canceled until the rest of the refund is made.

  5. An overpayment is not permitted in a transaction.

  6. An overrefund is not permitted in a transaction.

  7. A negative payment, or refund, is not permitted.

  8. A negative count, or time period, is not permitted in a rent action in a transaction.



    Fit for Developing Software. Framework for Integrated Tests
    Fit for Developing Software: Framework for Integrated Tests
    ISBN: 0321269349
    EAN: 2147483647
    Year: 2005
    Pages: 331

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net