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.
Get hands-on with 1400+ tech skills courses.