...

/

[C]ORRECT: [C]onformance

[C]ORRECT: [C]onformance

Learn about the principle of conformance in writing unit tests.

[C]onformance: Conform to a specific format

Many data elements must conform to a specific format. For example, an email address generally follows the form: name@somedomain

The name and domain portions of the address each follow a different set of fairly detailed rules. Imagine that we want to validate the conformance of an email address to these many regulations.

Perhaps our code parses an email address in an attempt to extract its ...