Created
February 22, 2017 10:22
-
-
Save atomgomba/c6e61248acd1e1698da7f8328d9b720f to your computer and use it in GitHub Desktop.
Common steps of a unit test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. arrange or setup step | |
Baby baby = new Baby(); | |
// 2. act or action step | |
baby.removeToy(); | |
// 3. assertion or verification step | |
assertTrue(baby.isCrying()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment