Annotation Constructors: arguments()

Indicates that test container class or test prepost function have to be instantiated or called using arguments provided by this annotation, see ArgumentsAnnotation.

Example:

    [Hobbit] who => [bilbo];
    {[[], [Dwarf]]*} dwarves => {[[], [fili]], [[], [kili]], [[], [balin]], [[], [dwalin]]...};

    arguments(`value who`)
    class HobbitTester(Hobbit hobbit) {
        shared test async
        parameterized(`value dwarves`)
        void thereAndBackAgain(AsyncTestContext context, Dwarf dwarf) {
            context.assertTrue(hobbit.thereAndBackAgain(dwarf)...);
            context.complete();
        }
    }

Source function may also be marked with arguments annotation.

By: Lis
See also arguments()
Since 0.5.0
  • ArgumentsAnnotation
    • Basic
      • Identifiable
      • Object
        • Anything
    • OptionalAnnotation
      • ConstrainedAnnotation
        • Annotation

no subtypes hierarchy

Initializer
ArgumentsAnnotation(FunctionOrValueDeclaration source)
Parameters:
  • source

    The source function or value declaration which has to return a stream of values. The source may be either top-level or tested class shared member.

Attributes
sourceshared FunctionOrValueDeclaration source

The source function or value declaration which has to return a stream of values. The source may be either top-level or tested class shared member.

Inherited Attributes
Attributes inherited from: Object
hash, string
Inherited Methods
Methods inherited from: Object
equals