Unit Test: Minimum Length Constraint
Let’s learn to write a unit test to implement a minimum length constraint.
We'll cover the following...
Defining the test
This test concerns the minimum length of the name
field. We want the minimum length to be two characters. We’ll start with the behavior we wish we had.
Access this course and 1400+ top-rated courses and projects.