Home

Awesome

TirePressure Kata

Write the unit tests for the Alarm class. The Alarm class is designed to monitor tire pressure and set an alarm if the pressure falls outside of the expected range. The Sensor class provided for the exercise fakes the behaviour of a real tire sensor, providing random but realistic values.

Acknowledgements

This exercise was originally designed by Luca Minudel and is included in his repo TDDwithMockObjectsAndDesignPrinciples. See also the video I made about it: https://youtu.be/ldthYMeXSoI