diff --git a/Tests/Testably.Abstractions.Tests/TestHelpers/TestExtensions.cs b/Tests/Testably.Abstractions.Tests/TestHelpers/TestExtensions.cs index e31a3971b..be04d276a 100644 --- a/Tests/Testably.Abstractions.Tests/TestHelpers/TestExtensions.cs +++ b/Tests/Testably.Abstractions.Tests/TestHelpers/TestExtensions.cs @@ -20,6 +20,6 @@ public static T DependsOnOS(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); }