BooleanTestCase<INPUT extends Object?>.truthy constructor

BooleanTestCase<INPUT extends Object?>.truthy({
  1. required String when,
  2. String then = 'should return true.',
  3. required INPUT input,
  4. ParameterizedCallback<INPUT, bool>? action,
  5. String? testOn,
  6. Timeout? timeout,
  7. dynamic skip,
  8. dynamic tags,
  9. Map<String, dynamic>? onPlatform,
  10. int? retry,
})

action is optional. Do not provide action if the TestCase is executed in a TestGroup.

Implementation

BooleanTestCase.truthy({
  required String when,
  String then = 'should return true.',
  required INPUT input,
  ParameterizedCallback<INPUT, bool>? action,
  String? testOn,
  Timeout? timeout,
  dynamic skip,
  dynamic tags,
  Map<String, dynamic>? onPlatform,
  int? retry,
}) : super(
        when: when,
        then: then,
        input: input,
        output: true,
        action: action,
        testOn: testOn,
        timeout: timeout,
        skip: skip,
        tags: tags,
        onPlatform: onPlatform,
        retry: retry,
      );