ecl-logo Documentation

RequiredWhenCompleted

RequiredWhenCompleted[packet,fields]test

returns a test to be used in RunUnitTest for whether the values of the given fields are informed if the DateCompleted field has been informed.

Details

    Input
    Output

Examples

Basic Examples  (3)

Generate an EmeraldTest Object on an Packet that should pass due to Status being Completed and the field of interest being informed:

Generate an EmeraldTest Object on an Packet that should pass due to Status not being Completed:

Generate an EmeraldTest Object on an Packet that should fail due to Status being Completed, but the field of interest not being informed:

Additional Examples  (1)

Also works when given a single field: