Programming Better Testing With Less Code Using Randomization Moving assertions into application code and randomizing test input helps bring more value from fewer tests.