February 2013
Intermediate to advanced
258 pages
7h 26m
English
Tests are the programmer’s way of expressing and validating assumptions and intended behavior of the code. Reading the tests for a given mass of code should provide the programmer with an understanding of what the code should do. Running those tests should tell the programmer what the code actually does.
Assertions play a key role in deciphering the behavior of code. Though all of the code that makes up a test tells a story about how the code under test is expected to behave, it’s the assertion statements that contribute the punchlines. It is ...