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

Skip to content

.NET: Add Executor RouteBuilder Unit Tests#5824

Merged
lokitoth merged 9 commits into
mainfrom
copilot/add-unit-tests-workflows-routebuilder
May 14, 2026
Merged

.NET: Add Executor RouteBuilder Unit Tests#5824
lokitoth merged 9 commits into
mainfrom
copilot/add-unit-tests-workflows-routebuilder

Conversation

Copilot AI commented May 13, 2026

Copy link
Copy Markdown
Contributor

Motivation and Context

This PR adds comprehensive unit tests for the RouteBuilder class in the Workflows library and includes several related fixes and cleanups discovered during the process.

Description

New RouteBuilder Unit Tests (RouteBuilderTests.cs)

  • Tests all 8 handler overloads (sync/async × void/result × with/without CancellationToken) via HandlerOverload enum
  • Tests all 8 catch-all fallback routing variants using PortableValue
  • Tests port handler registration, request posting, response routing, and unknown-port failure handling
  • Tests registration semantics: duplicate rejection, overwrite behavior, and PortableValue type guard

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 review requested due to automatic review settings May 13, 2026 19:26
Copilot AI removed the request for review from Copilot May 13, 2026 19:26
@lokitoth lokitoth changed the title Add RouteBuilder unit tests with readable HandlerOverload enum Add Executor RouteBuilder Unit Tests May 13, 2026
@moonbox3 moonbox3 added the .NET Usage: [Issues, PRs], Target: .Net label May 13, 2026
@github-actions github-actions Bot changed the title Add Executor RouteBuilder Unit Tests .NET: Add Executor RouteBuilder Unit Tests May 13, 2026
Copilot AI requested review from Copilot and removed request for Copilot May 13, 2026 19:49
Copilot AI requested a review from lokitoth May 13, 2026 19:50
Copilot AI review requested due to automatic review settings May 13, 2026 20:38
@lokitoth lokitoth added the workflows Usage: [Issues, PRs], Target: Workflows label May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.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.

6 participants