There are four types of qualifications for testing values and responding to failures: verifications, assumptions, assertions, and fatal assertions.
Verifications — Produce and record failures without throwing an exception, meaning the remaining tests run to completion.
Assumptions — Ensure that a test runs only when certain preconditions are satisfied and the event should not produce a test failure. When an assumption failure occurs, the testing framework marks the test as filtered.
Assertions — Ensure that the preconditions of the current test are met.
Fatal assertions — Use this qualification when the failure at the assertion point renders the remainder of the current test method invalid or the state is unrecoverable.
|Type of Test||Verification||Assumption||Assertion||Fatal Assertion|
|Value is true.|
|Value is false.|
|Value is equal to specified value.|
|Value is not equal to specified value.|
|Two values are handles to same instance.|
|Value is not handle to specified instance.|
|Function returns true when evaluated.|
|Test produces unconditional failure.|
|Value meets given constraint.|
|Value is greater than specified value.|
|Value is greater than or equal to specified value.|
|Value is less than specified value.|
|Value is less than or equal to specified value.|
|Value is exact specified class.|
|Value is object of specified type.|
|Value is empty.|
|Value is not empty.|
|Value has specified size.|
|Value has specified length.|
|Value has specified element count.|
|String contains specified string.|
|Text matches specified regular expression.|
|Function throws specified exception.|
|Function issues specified warning.|
|Function issues no warnings.|