mercredi 30 septembre 2015

property-based-test for simple object validation

consider this simple example:

  • Theres a Person object
  • It must have one of: FirstName and LastName (or both, but one is mandatory)
  • It must have a valid Age (integer, between 0 and 150)

How would you property-base-test this simple case?

Aucun commentaire:

Enregistrer un commentaire