EXTENSION
WorkflowActionTester
¶
extension WorkflowActionTester where WorkflowType.State: Equatable
Methods¶
assert(state:file:line:)
¶
public func assert(state expectedState: WorkflowType.State, file: StaticString = #file, line: UInt = #line) -> WorkflowActionTester<WorkflowType, Action>
Triggers a test failure if the current state does not match the given expected state
- Parameters:
- expectedState: The expected state
- returns: A tester containing the current state and output.
Parameters¶
Name | Description |
---|---|
expectedState | The expected state |
assert(output:file:line:)
¶
public func assert(output expectedOutput: WorkflowType.Output, file: StaticString = #file, line: UInt = #line) -> WorkflowActionTester<WorkflowType, Action>
Triggers a test failure if the produced output does not match the given expected output
- Parameters:
- expectedState: The expected output
- returns: A tester containing the current state and output.
Parameters¶
Name | Description |
---|---|
expectedState | The expected output |