Refactoring to Testable Code

General, Medium (1 hour)


Most developers have the responsibility of working with an existing codebase. In many circumstances, the existing code was not designed with testing in mind. This does not allow leveraging of automated testing to reduce risk and improve quality. To realize the value of automated testing, this existing code must be refactored which is not always easy to accomplish. By attending this session, you will learn several techniques to refactoring code that was not designed to be testable. In addition, unit test will be added to the newly refactored code and executed as a part of an automated test suite.