Yes, otherwise
- you have not tested all possible faults,
- and you have dependencies in your tests.
E.g.: If you only test that it fails when groupName
is equal to null
and login
is equal to null
, and your test fails - you can not be sure that it fails for the correct condition. And what's even more important: You can not even be sure that you have all the correct and important calls to Contract.Requires
.