From bdfe87be163032d346117f4836e824da3a53d72e Mon Sep 17 00:00:00 2001 From: Dimitri Vranken Date: Mon, 13 Feb 2023 12:09:35 +0100 Subject: [PATCH] Enabled windows-only tests on all plattforms They are now also supported on Linux because we are using SkiaSharp instead of System.Drawing.Common --- .../Utilities/WindowsOnlyDataTestMethod.cs | 24 +++++++++---------- .../Utilities/WindowsOnlyTestMethod.cs | 24 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/FFMpegCore.Test/Utilities/WindowsOnlyDataTestMethod.cs b/FFMpegCore.Test/Utilities/WindowsOnlyDataTestMethod.cs index 84a779a..e39921a 100644 --- a/FFMpegCore.Test/Utilities/WindowsOnlyDataTestMethod.cs +++ b/FFMpegCore.Test/Utilities/WindowsOnlyDataTestMethod.cs @@ -1,5 +1,4 @@ -using System.Runtime.InteropServices; -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FFMpegCore.Test.Utilities; @@ -7,16 +6,17 @@ public class WindowsOnlyDataTestMethod : DataTestMethodAttribute { public override TestResult[] Execute(ITestMethod testMethod) { - if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - var message = $"Test not executed on other platforms than Windows"; - { - return new[] - { - new TestResult { Outcome = UnitTestOutcome.Inconclusive, TestFailureException = new AssertInconclusiveException(message) } - }; - } - } + // Commented out because this edition of FFMpegCore fully supports Linux + //if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + //{ + // var message = $"Test not executed on other platforms than Windows"; + // { + // return new[] + // { + // new TestResult { Outcome = UnitTestOutcome.Inconclusive, TestFailureException = new AssertInconclusiveException(message) } + // }; + // } + //} return base.Execute(testMethod); } diff --git a/FFMpegCore.Test/Utilities/WindowsOnlyTestMethod.cs b/FFMpegCore.Test/Utilities/WindowsOnlyTestMethod.cs index 7e817bf..5143194 100644 --- a/FFMpegCore.Test/Utilities/WindowsOnlyTestMethod.cs +++ b/FFMpegCore.Test/Utilities/WindowsOnlyTestMethod.cs @@ -1,5 +1,4 @@ -using System.Runtime.InteropServices; -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FFMpegCore.Test.Utilities; @@ -7,16 +6,17 @@ public class WindowsOnlyTestMethod : TestMethodAttribute { public override TestResult[] Execute(ITestMethod testMethod) { - if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - var message = $"Test not executed on other platforms than Windows"; - { - return new[] - { - new TestResult { Outcome = UnitTestOutcome.Inconclusive, TestFailureException = new AssertInconclusiveException(message) } - }; - } - } + // Commented out because this edition of FFMpegCore fully supports Linux + //if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + //{ + // var message = $"Test not executed on other platforms than Windows"; + // { + // return new[] + // { + // new TestResult { Outcome = UnitTestOutcome.Inconclusive, TestFailureException = new AssertInconclusiveException(message) } + // }; + // } + //} return base.Execute(testMethod); }