Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Description

Uri tests were split between System.Private.Uri/tests and System.Runtime/tests. This consolidates all Uri-related tests into System.Private.Uri/tests/FunctionalTests.

Changes

Moved from System.Runtime/tests:

  • Uri.CreateStringTests.csUriCreateStringTests.cs
  • Uri.CreateUriTests.csUriCreateUriTests.cs
  • Uri.MethodsTests.csUriMethodsTests.cs
  • Updated namespace from System.Tests to System.PrivateUri.Tests

Consolidated ExtendedFunctionalTests:

  • Merged 6 unique test methods (obsolete API tests) into FunctionalTests/UriTests.cs
  • Deleted ExtendedFunctionalTests/UriRelativeResolutionTest.cs (complete duplicate)
  • Removed the ExtendedFunctionalTests project entirely

Project file updates:

  • Added new test files to System.Private.Uri.Functional.Tests.csproj
  • Removed Uri test references from System.Runtime.Tests.csproj
  • Removed Uri test references from System.Runtime.Nls.Tests.csproj

All 15,221 tests pass in the consolidated project.

Original prompt

Uri tests are currently split between the System.Private.Uri/tests project and the System.Runtime/tests project.
Move all Uri-related tests from System.Runtime to System.Private.Uri's functional tests


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Move Uri-related tests to System.Private.Uri functional tests Move Uri tests from System.Runtime to System.Private.Uri and consolidate ExtendedFunctionalTests Jan 29, 2026
Copilot AI requested a review from MihaZupan January 29, 2026 18:52
@MihaZupan MihaZupan marked this pull request as ready for review January 29, 2026 18:53
Copilot AI review requested due to automatic review settings January 29, 2026 18:53
@MihaZupan MihaZupan added this to the 11.0.0 milestone Jan 29, 2026
Copy link
Member

@MihaZupan MihaZupan left a comment

Choose a reason for hiding this comment

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

Assuming CI is happy, LGTM

@dotnet/ncl Uri tests existed across 4 projects:

  • Unit/Functional/ExtendedFunctional test projects under System.Private.Uri
  • A couple files in System.Runtime.Tests

This PR moves tests from System.Runtime and ExtendedFunctional into the regular functional tests project, making it so we just have two.

This is really just to make inner-loop less annoying for myself when looking at Uri locally since I can run all tests from a single project.

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

Consolidates all System.Uri-related tests under System.Private.Uri/tests/FunctionalTests, removing the split coverage previously living in System.Runtime.Tests and eliminating the now-redundant ExtendedFunctionalTests project.

Changes:

  • Removed Uri-specific test file inclusions from System.Runtime.Tests.csproj.
  • Added moved Uri test files (UriCreateStringTests, UriCreateUriTests, UriMethodsTests) into System.Private.Uri FunctionalTests and updated their namespaces.
  • Merged the remaining unique ExtendedFunctionalTests cases into FunctionalTests/UriTests.cs and removed the ExtendedFunctionalTests project/files.

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
src/libraries/System.Runtime/tests/System.Runtime.Tests/System.Runtime.Tests.csproj Removes compilation of the Uri-specific tests from System.Runtime test project.
src/libraries/System.Private.Uri/tests/FunctionalTests/System.Private.Uri.Functional.Tests.csproj Adds the moved Uri test sources to the System.Private.Uri functional test project.
src/libraries/System.Private.Uri/tests/FunctionalTests/UriCreateStringTests.cs Namespace update to align with System.Private.Uri test conventions after move.
src/libraries/System.Private.Uri/tests/FunctionalTests/UriCreateUriTests.cs Namespace update to align with System.Private.Uri test conventions after move.
src/libraries/System.Private.Uri/tests/FunctionalTests/UriMethodsTests.cs Namespace update to align with System.Private.Uri test conventions after move.
src/libraries/System.Private.Uri/tests/FunctionalTests/UriTests.cs Incorporates the previously-extended functional/obsolete API test cases into the consolidated functional test suite.
src/libraries/System.Private.Uri/tests/ExtendedFunctionalTests/System.Private.Uri.ExtendedFunctional.Tests.csproj Removes the ExtendedFunctionalTests project.
src/libraries/System.Private.Uri/tests/ExtendedFunctionalTests/UriTests.cs Removes the now-merged ExtendedFunctionalTests source file.
src/libraries/System.Private.Uri/tests/ExtendedFunctionalTests/UriRelativeResolutionTest.cs Removes the duplicate ExtendedFunctionalTests relative resolution tests.

@MihaZupan MihaZupan enabled auto-merge (squash) January 29, 2026 19:12
@MihaZupan
Copy link
Member

@copilot fix the references in the NlsTest project

CSC(0,0): error CS2001: (NETCORE_ENGINEERING_TELEMETRY=Build) Source file 'D:\a\_work\1\s\src\libraries\System.Runtime\tests\System.Runtime.Tests\NlsTests\..\System\Uri.CreateStringTests.cs' could not be found.

auto-merge was automatically disabled January 29, 2026 21:18

Head branch was pushed to by a user without write access

Copy link
Contributor Author

Copilot AI commented Jan 29, 2026

@copilot fix the references in the NlsTest project

CSC(0,0): error CS2001: (NETCORE_ENGINEERING_TELEMETRY=Build) Source file 'D:\a\_work\1\s\src\libraries\System.Runtime\tests\System.Runtime.Tes...

Fixed in 92ed522 - removed the Uri test file references from System.Runtime.Nls.Tests.csproj.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants