How to do it:
-
Identify the change point.
-
Extract a method with the body of the current method.
-
Develop a method for the new behaviour with tests.
-
Call it from the current method.
How to do it:
-
Identify the change point.
-
Develop a method for the new behaviour with tests.
-
Create another method that calls the new and the old methods.