copyWith method

  1. @override
NegativeTestCase<INPUT, OUTPUT> copyWith(
  1. ParameterizedCallback<INPUT, OUTPUT> action
)
override

copyWith is used internally by the TestGroup.

Implementation

@override
NegativeTestCase<INPUT, OUTPUT> copyWith(
  ParameterizedCallback<INPUT, OUTPUT> action,
) =>
    NegativeTestCase<INPUT, OUTPUT>(
      when: this.when,
      input: this.input,
      exception: this.exception,
      action: action,
      testOn: this.testOn,
      timeout: this.timeout,
      skip: this.skip,
      tags: this.tags,
      onPlatform: this.onPlatform,
      retry: this.retry,
    );