Fix attribute

Former-commit-id: f33c060ff5
This commit is contained in:
Malte Rosenbjerg 2023-01-29 23:10:24 +01:00
parent f8eff73690
commit 79b0718d95
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ public class WindowsOnlyDataTestMethod : DataTestMethodAttribute
{ {
public override TestResult[] Execute(ITestMethod testMethod) public override TestResult[] Execute(ITestMethod testMethod)
{ {
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{ {
var message = $"Test not executed on other platforms than Windows"; var message = $"Test not executed on other platforms than Windows";
{ {

View file

@ -7,7 +7,7 @@ public class WindowsOnlyTestMethod : TestMethodAttribute
{ {
public override TestResult[] Execute(ITestMethod testMethod) public override TestResult[] Execute(ITestMethod testMethod)
{ {
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{ {
var message = $"Test not executed on other platforms than Windows"; var message = $"Test not executed on other platforms than Windows";
{ {