FFMpegCore/FFMpegCore.Test/Utilities/WindowsOnlyTestMethod.cs
Dimitri Vranken bdfe87be16 Enabled windows-only tests on all plattforms
They are now also supported on Linux because we are using SkiaSharp instead of System.Drawing.Common
2023-02-13 12:09:35 +01:00

23 lines
778 B
C#

using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FFMpegCore.Test.Utilities;
public class WindowsOnlyTestMethod : TestMethodAttribute
{
public override TestResult[] Execute(ITestMethod testMethod)
{
// 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);
}
}