* Add unit and integration tests for `Complete` activity to validate composite workflows execution - Introduced integration and unit tests covering `Complete` activity behavior in nested and simple composite workflows. - Added `CompleteTests` for edge cases such as immediate parent completion and composite termination. - Developed new composite activities (`InnerComposite`, `OuterComposite`, `SimpleComposite`) for testing scenarios. * Remove unnecessary `Complete` constructors tests.
22 lines
526 B
C#
22 lines
526 B
C#
using Elsa.Workflows.Activities;
|
|
|
|
namespace Elsa.Activities.IntegrationTests.Composition.Activities;
|
|
|
|
/// <summary>
|
|
/// Simple composite activity that uses Complete to terminate early.
|
|
/// </summary>
|
|
public class SimpleComposite : Composite
|
|
{
|
|
public SimpleComposite()
|
|
{
|
|
Root = new Sequence
|
|
{
|
|
Activities =
|
|
{
|
|
new WriteLine("Before Complete"),
|
|
new Complete(),
|
|
new WriteLine("This should not execute")
|
|
}
|
|
};
|
|
}
|
|
} |