UnitScenario<SUT, Example extends UnitExample?> constructor

UnitScenario<SUT, Example extends UnitExample?>({
  1. required String description,
  2. required List<UnitStep<SUT, Example>> steps,
  3. SUT systemUnderTest(
    1. UnitMocks mocks
    )?,
  4. List<Example> examples = const [],
  5. TestGroupFunction<SUT>? setUpEach,
  6. TestGroupFunction<SUT>? tearDownEach,
  7. TestGroupFunction<SUT>? setUpOnce,
  8. TestGroupFunction<SUT>? tearDownOnce,
})

Implementation

UnitScenario({
  required String description,
  required List<UnitStep<SUT, Example>> steps,
  SUT Function(UnitMocks mocks)? systemUnderTest,
  List<Example> examples = const [],
  TestGroupFunction<SUT>? setUpEach,
  TestGroupFunction<SUT>? tearDownEach,
  TestGroupFunction<SUT>? setUpOnce,
  TestGroupFunction<SUT>? tearDownOnce,
})  : _description = description,
      _systemUnderTestCallback = systemUnderTest,
      _steps = steps,
      _examples = examples,
      _setUpEach = setUpEach,
      _tearDownEach = tearDownEach,
      _setUpOnce = setUpOnce,
      _tearDownOnce = tearDownOnce;