Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Replace Xunit.PlatformID with Xunit.TestPlatforms#1000

Merged
weshaggard merged 1 commit into
dotnet:masterfrom
justinvp:testplatforms
Sep 14, 2016
Merged

Replace Xunit.PlatformID with Xunit.TestPlatforms#1000
weshaggard merged 1 commit into
dotnet:masterfrom
justinvp:testplatforms

Conversation

@justinvp
Copy link
Copy Markdown

Xunit.PlatformID conflicts with System.PlatformID and should be plural according to the naming guidelines for flags enums.

This commit adds a new Xunit.TestPlatforms enum as a replacement for Xunit.PlatformID. Xunit.PlatformID remains for now, until all uses have transitioned to the new enum.

Part of: #999

`Xunit.PlatformID` conflicts with `System.PlatformID` and should be
plural according to the naming guidelines for flags enums.

This commit adds a new `Xunit.TestPlatforms` enum as a replacement for
`Xunit.PlatformID`. `Xunit.PlatformID` remains for now, until all uses
have transitioned to the new enum.
@dnfclas
Copy link
Copy Markdown

dnfclas commented Aug 31, 2016

Hi @justinvp, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@justinvp
Copy link
Copy Markdown
Author

cc: @Priya91 @weshaggard @mellinoe

(platforms.HasFlag(PlatformID.NetBSD) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("NETBSD"))) ||
(platforms.HasFlag(PlatformID.OSX) && RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) ||
(platforms.HasFlag(PlatformID.Windows) && RuntimeInformation.IsOSPlatform(OSPlatform.Windows)))
TestPlatforms platforms = (TestPlatforms)ctorArgs.Last();

This comment was marked as spam.

@weshaggard
Copy link
Copy Markdown
Member

LGTM

@weshaggard weshaggard merged commit 42cde7a into dotnet:master Sep 14, 2016
@justinvp justinvp deleted the testplatforms branch September 14, 2016 00:11
weshaggard added a commit to weshaggard/corefx that referenced this pull request Oct 1, 2016
This allows us to start using TestPlatforms added with
dotnet/buildtools#1000
weshaggard added a commit to weshaggard/corefx that referenced this pull request Oct 1, 2016
This allows us to start using TestPlatforms added with
dotnet/buildtools#1000
macrogreg pushed a commit to open-telemetry/opentelemetry-dotnet-instrumentation that referenced this pull request Sep 24, 2020
This allows us to start using TestPlatforms added with
dotnet/buildtools#1000


Commit migrated from dotnet/corefx@64a737e
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
This allows us to start using TestPlatforms added with
dotnet/buildtools#1000


Commit migrated from dotnet/corefx@64a737e
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants