ecl-logo Documentation

UniqueFieldTest

UniqueFieldTest[packet,field]test

returns a test that checks if no other objects, with the same type as packet, store the same value in the specified field.

Details

    Input
    Output

Examples

Basic Examples  (3)

Generates a test which passes because the value is unique:

Generates a test which fails because the value is not unique:

Generates a test which passes because the value is null: