Skip to content

Commit

Permalink
WindowsOnlyTheoryAttribute fix for .NET FW
Browse files Browse the repository at this point in the history
  • Loading branch information
LTRData committed Jan 10, 2025
1 parent e4d5b59 commit 136cb84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/LibraryTests/WindowsOnlyTheoryAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ public override string Skip
{
get
{
#if NETCOREAPP
#if NET471_OR_GREATER || NETCOREAPP || NETSTANDARD
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return "This test runs on Windows only";
}

return null;
#else
return "This test runs on Windows only";
#endif

return "This test runs on Windows with .NET Framework 4.7.1, .NET Core or .NET Standard only";

Check warning on line 44 in Tests/LibraryTests/WindowsOnlyTheoryAttribute.cs

View workflow job for this annotation

GitHub Actions / build

Unreachable code detected

Check warning on line 44 in Tests/LibraryTests/WindowsOnlyTheoryAttribute.cs

View workflow job for this annotation

GitHub Actions / build

Unreachable code detected

Check warning on line 44 in Tests/LibraryTests/WindowsOnlyTheoryAttribute.cs

View workflow job for this annotation

GitHub Actions / build

Unreachable code detected

Check warning on line 44 in Tests/LibraryTests/WindowsOnlyTheoryAttribute.cs

View workflow job for this annotation

GitHub Actions / build

Unreachable code detected
}
set => throw new NotSupportedException();
}
Expand Down

0 comments on commit 136cb84

Please sign in to comment.