Thanks to visit codestin.com
Credit goes to github.com

Skip to content

.NET Workflows - Add unit tests for ForeachExecutor (Declarative Workflows)#3835

Merged
crickman merged 17 commits into
mainfrom
copilot/add-unit-tests-foreach-executor
Feb 12, 2026
Merged

.NET Workflows - Add unit tests for ForeachExecutor (Declarative Workflows)#3835
crickman merged 17 commits into
mainfrom
copilot/add-unit-tests-foreach-executor

Conversation

Copilot AI commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Motivation and Context

The ForeachExecutor class had no unit test coverage. Unit tests ensure correctness of loop initialization, value iteration logic, index tracking, and state reset behavior.

Description

  • Created ForeachExecutorTest.cs with 100% line/branch coverage
  • Updated WorkflowActionExecutorTest to support non-discrete actions
  • Fine-tuned some method names
  • Updated semantics for DeclarativeWorkflowTest

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI changed the title [WIP] Add unit test class for foreach executor Add unit tests for ForeachExecutor with comprehensive coverage Feb 11, 2026
Copilot AI requested a review from crickman February 11, 2026 00:12
@crickman crickman changed the title Add unit tests for ForeachExecutor with comprehensive coverage .NET Workflows - Add unit tests for ForeachExecutor (Declarative Workflows) Feb 11, 2026
@crickman crickman added .NET Usage: [Issues, PRs], Target: .Net v1.0 labels Feb 11, 2026
@markwallace-microsoft markwallace-microsoft added the workflows Usage: [Issues, PRs], Target: Workflows label Feb 11, 2026
@crickman crickman added this pull request to the merge queue Feb 12, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 12, 2026
@crickman crickman enabled auto-merge February 12, 2026 16:14
@crickman crickman added this pull request to the merge queue Feb 12, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Feb 12, 2026
…flows) (#3835)

* Initial plan

* Add comprehensive unit tests for ForeachExecutor

Co-authored-by: crickman <[email protected]>

* Formatting

* Checkpoint

* Checkpoint

* Updated test capabilities for non-discrete

* Update dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.UnitTests/ObjectModel/ForeachExecutorTest.cs

Co-authored-by: Copilot <[email protected]>

* Update dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.UnitTests/ObjectModel/ForeachExecutorTest.cs

Co-authored-by: Copilot <[email protected]>

* Consistency

* Cleanup test

* Fixed

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: crickman <[email protected]>
Co-authored-by: Chris Rickman <[email protected]>
Co-authored-by: Copilot <[email protected]>
Merged via the queue into main with commit 69dcfe3 Feb 12, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in Agent Framework Feb 12, 2026
@crickman crickman deleted the copilot/add-unit-tests-foreach-executor branch February 12, 2026 18:00
@moonbox3 moonbox3 added declarative Usage: [Issues, PRs], Target: declarative agents and workflows and removed declarative-workflow labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

declarative Usage: [Issues, PRs], Target: declarative agents and workflows .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants