Skip to content

code kata for learning more about test doubles and SOLID principles

License

Notifications You must be signed in to change notification settings

emilybache/TirePressure-Kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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