elsa-core/test/integration/Elsa.Activities.IntegrationTests
Sipke Schoorstra fbe9ca64f0
Fix Switch activity behavior and add testing utilities for RunWorkflowResult and improve (#7151)
* Add testing utilities for `RunWorkflowResult` and improve `Switch` activity behavior

- Introduced `RunWorkflowResultAssertions` for xUnit-based workflow testing.
- Added `RunWorkflowResultExtensions` for journal-based activity execution context handling.
- Refactored `Switch` activity to track scheduled activities and correctly complete execution when all scheduled activities finish.
- Marked `RunActivityExtensions` methods as obsolete, recommending the use of `WorkflowTestFixture`.

* Update src/common/Elsa.Testing.Shared.Integration/RunActivityExtensions.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Elsa.Workflows.Core/Activities/Switch.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add XML documentation to Switch activity callback method (#7152)

* Initial plan

* Add XML documentation to OnChildActivityCompletedAsync method

Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
2025-12-19 17:05:12 +01:00
..
Branching Fix Switch activity behavior and add testing utilities for RunWorkflowResult and improve (#7151) 2025-12-19 17:05:12 +01:00
Composition Add unit and integration tests for Complete activity to validate composite workflows execution (#7108) 2025-11-26 12:26:31 +01:00
Flow Configures Flowchart Execution via DI (#7141) 2025-12-15 10:15:39 +01:00
Http Add unit and integration tests for DownloadHttpFile activity (#7094) 2025-11-24 14:37:06 +01:00
Primitives Add unit and integration tests for the Finish activity to validate termination behavior (#7110) (#7114) 2025-11-27 20:51:59 +01:00
Elsa.Activities.IntegrationTests.csproj Add unit and integration tests for DownloadHttpFile activity (#7094) 2025-11-24 14:37:06 +01:00
ForEachTests.cs Update nullable argument defaults and enhance ForEach tests with additional edge cases. (#6928) 2025-09-27 17:55:40 +02:00
ParallelForEachTests.cs Add unit and integration tests for ParallelForEach activity covering behavior with different item types, fault handling, and scenario-specific conditions (#7120) 2025-11-27 20:58:58 +01:00
ParallelTests.cs Add unit and integration tests for ParallelForEach activity covering behavior with different item types, fault handling, and scenario-specific conditions (#7120) 2025-11-27 20:58:58 +01:00
SetNameTests.cs Improved support for named workflow instances 2025-03-02 11:17:18 +01:00
SetOutputTests.cs Remove unused test cases and workflows from SetOutputTests to simplify integration test coverage. 2025-10-22 23:46:17 +02:00
SetVariableTests.cs Adds SetVariable activity unit tests (#6989) 2025-10-22 20:54:58 +02:00
Usings.cs
WriteLineTests.cs