Skip to content

Commit

Permalink
Exclude simulated tests on .NET Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
vbreuss committed Apr 20, 2024
1 parent 9f53f66 commit 264b937
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public static T DependsOnOS<T>(this Test test, T windows, T macOS, T linux)
public static bool RunsOn(this Test test, TestOS operatingSystem)
=> (operatingSystem.HasFlag(TestOS.Linux) && test.RunsOnLinux) ||
(operatingSystem.HasFlag(TestOS.Mac) && test.RunsOnMac) ||
(operatingSystem.HasFlag(TestOS.Windows) && test.RunsOnWindows) ||
(operatingSystem.HasFlag(TestOS.Windows) && test is { RunsOnWindows: true, IsNetFramework: false }) ||
(operatingSystem.HasFlag(TestOS.Framework) && test.IsNetFramework);
}

0 comments on commit 264b937

Please sign in to comment.