How to do it:
-
Identify the change point and determine the sprouted method signature (input/output).
-
Pass to the sprouted method any source method’s local variables it needs as parameters.
-
Determine whether the sprouted method will need to return values to any variable in the source method.
-
-
Develop the sprouted method with tests.
-
Call the sprouted method from the source method.