Skip to content

Use PlatformNames contants for platform exclusions#6606

Open
0xced wants to merge 2 commits into
npgsql:mainfrom
0xced:PlatformNames
Open

Use PlatformNames contants for platform exclusions#6606
0xced wants to merge 2 commits into
npgsql:mainfrom
0xced:PlatformNames

Conversation

@0xced

@0xced 0xced commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

MacOsX with a lowercase s is just too ugly 🙈

MacOsX with a lowercase s is just too ugly 🙈
@0xced 0xced requested review from roji and vonzshik as code owners June 13, 2026 12:31
Copilot AI review requested due to automatic review settings June 13, 2026 12:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates NUnit [Platform] usage in tests to use PlatformNames constants instead of raw string literals for platform exclusions.

Changes:

  • Replaced Exclude = "Win" with Exclude = PlatformNames.Win in SSL-related security tests.
  • Replaced Exclude = "MacOsX" with Exclude = PlatformNames.MacOSX across multiple test suites.
  • Kept existing skip reasons while standardizing platform identifiers.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
test/Npgsql.Tests/SecurityTests.cs Switches platform exclusion strings to PlatformNames constants for Windows/macOS in SSL security tests.
test/Npgsql.Tests/MultipleHostsTests.cs Uses PlatformNames.MacOSX for a macOS-excluded multi-host test.
test/Npgsql.Tests/CopyTests.cs Uses PlatformNames.MacOSX for a macOS-excluded COPY-related test.
test/Npgsql.Tests/ConnectionTests.cs Uses PlatformNames.MacOSX for a macOS-excluded Unix socket test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/Npgsql.Tests/SecurityTests.cs Outdated
Comment thread test/Npgsql.Tests/SecurityTests.cs Outdated
Comment thread test/Npgsql.Tests/MultipleHostsTests.cs Outdated
Comment thread test/Npgsql.Tests/SecurityTests.cs
Comment thread test/Npgsql.Tests/SecurityTests.cs
Comment thread test/Npgsql.Tests/SecurityTests.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants