Skip to content

Add test that AppContext.BaseDirectory is rooted #113232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 10, 2025

Conversation

MichalStrehovsky
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings March 6, 2025 21:23
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Mar 6, 2025
Copy link
Contributor

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

PR Overview

This PR adds a new test to verify that AppContext.BaseDirectory returns a rooted path.

  • Added using System.IO to support path operations.
  • Introduced the BaseDirectory_PathRooted test method to assert that AppContext.BaseDirectory is rooted.

Reviewed Changes

File Description
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/AppContext/AppContextTests.cs Added new test for ensuring AppContext.BaseDirectory is a rooted path

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

@rhuijben
Copy link

Is rooted enough? Shouldn't this check for fully absolute for Windows cases?

@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants