Section 10.9. Exercises


10.9. Exercises

Answers to selected exercises are available on the book Web site; see Appendix B for details.

1.

Using DoFixture tables in flow style, write a new chat test: "Anna creates a second room and moves to it." As in the exercises in Chapter 4, you decide whether she is only in the latest room or is in both.

2.

Write new tests for the chat server, such that each room is considered to have an owner, and only the owner may remove the room and only when it is empty.

3.

Choose a simple sequence of steps in a business process that is relevant to you and write a test using flow-style fixtures.

4.

From the exercises in Chapter 3, create a CalculateFixture table for this business rule:

We charge for time based on the charge rate of the consultant, in units of whole hours, and with a minimum charge of $5,000.



    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