August 2018
Beginner
594 pages
22h 33m
English
In this section of the unit test method, you arrange any preconditions and inputs for the test. This includes initializing values and setting up mock objects.
Depending on the unit test framework and programming language that you are using, some of them provide a way to specify methods that will execute prior to the execution of the unit tests for that test class. This allows you to centralize arrangement logic that you want to execute prior to the execution of all of your tests.
However, each unit test method should have an arrange section where you are performing initialization for that particular test.