Skip to content

Conversation

@stephentoub
Copy link
Member

@stephentoub stephentoub commented Nov 3, 2025

Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings November 3, 2025 22:32
@stephentoub stephentoub requested review from a team as code owners November 3, 2025 22:32
@stephentoub stephentoub enabled auto-merge (squash) November 3, 2025 22:32
@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Nov 3, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances test quality and fixes encoding issues across AI-related test files. The changes add parameter name arguments to Assert.Throws calls for better test diagnostics and correct character encoding in test data.

Key changes:

  • Added parameter name arguments to Assert.Throws assertions across multiple test files for clearer error messages
  • Fixed character encoding from to ° for degree symbols in temperature strings
  • Updated HostedFileContent constructor to use Throw.IfNullOrWhitespace for consistent validation

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
SummarizingChatReducerTests.cs Added parameter names to exception assertions for constructor validation tests
MessageCountingChatReducerTests.cs Added parameter names to exception assertions and fixed degree symbol encoding
ToolReductionTests.cs Added parameter name to ArgumentOutOfRangeException assertion
NGramTests.cs Added parameter names to multiple exception assertions
AIJsonUtilitiesTests.cs Added parameter names to exception assertions for validation tests
AIJsonSchemaTransformCacheTests.cs Added parameter names to exception assertions
HostedVectorStoreContentTests.cs Added parameter names to exception assertions for constructor and property validation
HostedFileContentTests.cs Added parameter names to exception assertions for constructor and property validation
HostedFileContent.cs Updated constructor to use Throw.IfNullOrWhitespace for consistent validation

@stephentoub stephentoub merged commit 57004d9 into dotnet:main Nov 4, 2025
6 checks passed
This was referenced Nov 11, 2025
This was referenced Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants