.NET Workflows - Add unit tests for ConditionGroupExecutor (#3893)

* Initial plan

* Add ConditionGroupExecutorTest with comprehensive test coverage

Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

* Address code review feedback - extract reflection helper and improve comments

Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

* Ready

* Namespace

* Cleanup

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>
Co-authored-by: Chris Rickman <crickman@microsoft.com>
This commit is contained in:
Copilot
2026-02-17 16:35:23 +00:00
committed by GitHub
co-authored by crickman copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Chris Rickman
parent e633f208d9
commit 349d645cfc
4 changed files with 260 additions and 9 deletions
@@ -22,11 +22,12 @@ internal sealed class ConditionGroupExecutor : DeclarativeActionExecutor<Conditi
{
return conditionItem.Id;
}
int index = model.Conditions.IndexOf(conditionItem);
return $"{model.Id}_Items{index}";
}
public static string Else(ConditionGroup model) => model.ElseActions.Id.Value ?? $"{model.Id}_Else";
public static string Else(ConditionGroup model) => model.ElseActions.Id.Value;
}
public ConditionGroupExecutor(ConditionGroup model, WorkflowFormulaState state)