Against The Clock: a refactoring exercise with legacy code
This coding challenge is a refactoring exercise with legacy code for Software Craftsmen for training purposes. An autonomous car has an hybrid motor and is engaged in a race against the clock. The exercise was originally created and proposed by Michaël Azerhad and starts with identifying code smells that break some object-oriented concepts.
My solution uses TestAsYouThink, a fluent testing API.