1. The essential structure of a test (with mock objects)

    The essential structure of a test is:

    - Create any required mock objects.
    - Create any real objects, including the target object.
    - Specify how you expect the mock objects to be called by the target object.
    - Call the triggering method(s) on the target object.
    - Assert that any resulting values are valid and that all the expected calls have been made.

    - Growing Object-Oriented Software, Guided by Tests -

    1 month ago  /  2 notes

    1. hidenorigoto posted this