mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.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:
co-authored by
crickman
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Chris Rickman
parent
e633f208d9
commit
349d645cfc
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user